summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-01-30 14:33:24 +0000
committerRichard Hughes <richard@hughsie.com>2009-01-30 14:33:24 +0000
commitdf0843d4bda140669db7d56651e1f4b22c8ddffe (patch)
tree13e03c57f6dfb5c62c8115809213a351c4f2ca7f
parent3decd608251c62daf3a13c086dc1c256ea767163 (diff)
trivial: return zero for GetTotal when the method fails
-rw-r--r--libdevkit-power/dkp-wakeups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdevkit-power/dkp-wakeups.c b/libdevkit-power/dkp-wakeups.c
index 51297a9..de48ac8 100644
--- a/libdevkit-power/dkp-wakeups.c
+++ b/libdevkit-power/dkp-wakeups.c
@@ -57,7 +57,7 @@ G_DEFINE_TYPE (DkpWakeups, dkp_wakeups, G_TYPE_OBJECT)
guint
dkp_wakeups_get_total (DkpWakeups *wakeups, GError **error)
{
- guint total;
+ guint total = 0;
gboolean ret;
GError *error_local = NULL;