win32: silence build warning
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Wed, 6 Nov 2013 12:57:07 +0000 (13:57 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jan 2014 13:26:47 +0000 (08:26 -0500)
gdbusauthmechanismexternal.c: In function 'mechanism_client_initiate':
gdbusauthmechanismexternal.c:355:3: warning: 'initial_response' may be
used uninitialized in this function [-Wmaybe-uninitialized]
   return initial_response;
   ^
gdbusauthmechanismexternal.c:332:10: note: 'initial_response' was
declared here

https://bugzilla.gnome.org/show_bug.cgi?id=711547

gio/gdbusauthmechanismexternal.c

index 38a2f65..f0bcfc3 100644 (file)
@@ -325,7 +325,7 @@ mechanism_client_initiate (GDBusAuthMechanism   *mechanism,
                            gsize                *out_initial_response_len)
 {
   GDBusAuthMechanismExternal *m = G_DBUS_AUTH_MECHANISM_EXTERNAL (mechanism);
-  gchar *initial_response;
+  gchar *initial_response = NULL;
   GCredentials *credentials;
 
   g_return_val_if_fail (G_IS_DBUS_AUTH_MECHANISM_EXTERNAL (mechanism), NULL);