trivial: return zero for GetTotal when the method fails

This commit is contained in:
Richard Hughes 2009-01-30 14:33:24 +00:00
parent 3decd60825
commit df0843d4bd

View file

@ -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;