summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-06-15 13:03:31 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-06-15 13:03:31 +0200
commit5f9763f4ad5a9f094f82d6a26b4f9d5099393074 (patch)
treea35f2e3076b57a1960bffd9bccb946a4d27e566d /src/plugins/xfer/xfer.c
parent18a59cf8aaefcbd16d48387b68ce9ae874162c64 (diff)
downloadweechat-5f9763f4ad5a9f094f82d6a26b4f9d5099393074.zip
Fix connection bug in xfer plugin
Diffstat (limited to 'src/plugins/xfer/xfer.c')
-rw-r--r--src/plugins/xfer/xfer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c
index 6452827f4..c0c8951d6 100644
--- a/src/plugins/xfer/xfer.c
+++ b/src/plugins/xfer/xfer.c
@@ -649,6 +649,9 @@ xfer_add_cb (void *data, const char *signal, const char *type_data, void *signal
short_filename = NULL;
spaces = 0;
+ sock = -1;
+ port = 0;
+
plugin_name = weechat_infolist_string (infolist, "plugin_name");
plugin_id = weechat_infolist_string (infolist, "plugin_id");
str_type = weechat_infolist_string (infolist, "type");