diff --git a/src/nm-session-monitor.c b/src/nm-session-monitor.c index a70067a982..4877b77032 100644 --- a/src/nm-session-monitor.c +++ b/src/nm-session-monitor.c @@ -207,7 +207,7 @@ static gboolean reload_database (NMSessionMonitor *self, GError **error) { struct stat statbuf; - char **groups; + char **groups = NULL; gsize len = 0, i; Session *s; diff --git a/test/nm-tool.c b/test/nm-tool.c index 65546e48e5..ea3ef13b6c 100644 --- a/test/nm-tool.c +++ b/test/nm-tool.c @@ -724,7 +724,7 @@ get_all_connections (void) { GError *error = NULL; DBusGConnection *bus; - DBusGProxy *proxy; + DBusGProxy *proxy = NULL; GPtrArray *paths = NULL; int i; gboolean sucess = FALSE;