From: Marc-André Lureau Date: Wed, 6 Nov 2013 12:57:07 +0000 (+0100) Subject: win32: silence build warning X-Git-Tag: 2.39.4~116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8f58fcfec121241be7890f5b340e139f39fd125;p=platform%2Fupstream%2Fglib.git win32: silence build warning 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 --- diff --git a/gio/gdbusauthmechanismexternal.c b/gio/gdbusauthmechanismexternal.c index 38a2f65..f0bcfc3 100644 --- a/gio/gdbusauthmechanismexternal.c +++ b/gio/gdbusauthmechanismexternal.c @@ -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);