From 9806a92eaa1754146cfdf1b57b95789ee405e089 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 25 Jan 2011 15:41:14 -0600 Subject: [PATCH] trivial: fix some possible uninitialized variable usage in error cases --- src/nm-session-monitor.c | 2 +- test/nm-tool.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;