diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-06-11 16:49:08 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-06-11 16:53:48 +0100 |
commit | 60800a465f33693ed9aeb42630974d60e6465bf8 (patch) | |
tree | 5294fb206cad1174d88df008f1ed2d16e9edb9c0 /wocky/wocky-jabber-auth.c | |
parent | cba01d1776b8e2193ddd5dc0d3f741807bda61d8 (diff) |
Squash warnings about uninitialized GError *s
Diffstat (limited to 'wocky/wocky-jabber-auth.c')
-rw-r--r-- | wocky/wocky-jabber-auth.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wocky/wocky-jabber-auth.c b/wocky/wocky-jabber-auth.c index 743ebc2..ec8155b 100644 --- a/wocky/wocky-jabber-auth.c +++ b/wocky/wocky-jabber-auth.c @@ -265,7 +265,7 @@ auth_failed (WockyJabberAuth *self, gint code, const gchar *format, ...) gchar *message; va_list args; GSimpleAsyncResult *r; - GError *error; + GError *error = NULL; WockyJabberAuthPrivate *priv = self->priv; auth_reset (self); @@ -307,9 +307,7 @@ stream_error (WockyJabberAuth *self, WockyStanza *stanza) if (type == WOCKY_STANZA_TYPE_STREAM_ERROR) { - GError *error; - - error = wocky_xmpp_stream_error_from_node ( + GError *error = wocky_xmpp_stream_error_from_node ( wocky_stanza_get_top_node (stanza)); auth_failed (self, WOCKY_AUTH_ERROR_STREAM, "%s: %s", |