mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 20:28:01 +02:00
trivial: return zero for GetTotal when the method fails
This commit is contained in:
parent
3decd60825
commit
df0843d4bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue