Fix (correct) GCC warning about possibly-uninitialized variable
authorColin Walters <walters@verbum.org>
Fri, 10 Sep 2010 18:45:09 +0000 (14:45 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 10 Sep 2010 18:53:38 +0000 (14:53 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/polkitagent/polkitagenthelperprivate.c

index d4495dd..8f0c878 100644 (file)
@@ -48,8 +48,8 @@ _polkit_clearenv (void)
 gboolean
 send_dbus_message (const char *cookie, const char *user)
 {
-  PolkitAuthority *authority;
-  PolkitIdentity *identity;
+  PolkitAuthority *authority = NULL;
+  PolkitIdentity *identity = NULL;
   GError *error;
   gboolean ret;