summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-06-17 17:56:08 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-06-17 17:56:08 -0400
commit517ad0fe9caf02f83edd2f95806ccecd019f085c (patch)
treeab89a9afbdd0ca8faa186bf865803f1cc8b75aa3
parent52a458bf5b3b47c234681cf3658a07f5b2e83870 (diff)
Initialize GError to NULL before using it
-rw-r--r--src/daemon/xdg-hostname-daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/xdg-hostname-daemon.c b/src/daemon/xdg-hostname-daemon.c
index 88fff8c..25f36ad 100644
--- a/src/daemon/xdg-hostname-daemon.c
+++ b/src/daemon/xdg-hostname-daemon.c
@@ -572,7 +572,7 @@ static gboolean
uninhibit_reading (XdgHostnameDaemon *daemon)
{
daemon->inhibit_reading = FALSE;
- g_warning ("unihibiting reading");
+ g_debug ("unihibiting reading");
return FALSE;
}
@@ -842,6 +842,7 @@ _xdg_hostname_priv_set_data (SetDataFlags flags,
GError *local_error;
ret = FALSE;
+ local_error = NULL;
/* TODO: sanity check data */