diff options
author | Colin Walters <walters@verbum.org> | 2012-12-14 16:02:48 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-12-14 16:29:27 -0500 |
commit | 4a40d1188d34eee3a5ae55869e09aac0c97b6443 (patch) | |
tree | 80b396542680198424ec26aa8807da3f68187920 | |
parent | 33170885f097133e609d9322405bcf3dcb70a546 (diff) | |
download | libsoup-4a40d1188d34eee3a5ae55869e09aac0c97b6443.tar.gz libsoup-4a40d1188d34eee3a5ae55869e09aac0c97b6443.tar.bz2 libsoup-4a40d1188d34eee3a5ae55869e09aac0c97b6443.zip |
SoupConnection: Quiet a (mistaken) compiler warning
gcc claims 'event_id' might be uninitialized; it's wrong, but it's
hard for the optimizer to know that. Placate it in the name of
reducing warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=690224
-rw-r--r-- | libsoup/soup-connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-connection.c b/libsoup/soup-connection.c index 34b9b2d1..21613946 100644 --- a/libsoup/soup-connection.c +++ b/libsoup/soup-connection.c @@ -604,7 +604,7 @@ guint soup_connection_connect_sync (SoupConnection *conn, GCancellable *cancellable) { SoupConnectionPrivate *priv; - guint status, event_id; + guint status, event_id = 0; SoupURI *connect_uri; SoupAddress *remote_addr; @@ -690,7 +690,7 @@ soup_connection_connect_sync (SoupConnection *conn, GCancellable *cancellable) soup_connection_disconnect (conn); } - if (priv->socket) + if (priv->socket && event_id) g_signal_handler_disconnect (priv->socket, event_id); if (priv->proxy_uri != NULL) |