diff options
author | Timo Sirainen <cras@irssi.org> | 2003-11-16 16:49:51 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-11-16 16:49:51 +0000 |
commit | 91be647710d6d6df27b83211d9ff083e4949c7f1 (patch) | |
tree | 1d4f22301fb8435ceb942a42aab272e14f9a6e61 /src/irc/dcc | |
parent | b7ed8cec6c81022bf3b629b2f9db58c200428be8 (diff) | |
download | irssi-91be647710d6d6df27b83211d9ff083e4949c7f1.zip |
Don't crash with /DCC SEND nick ""
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3142 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc')
-rw-r--r-- | src/irc/dcc/dcc-send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-send.c b/src/irc/dcc/dcc-send.c index 46e1dd4e..93a85fa1 100644 --- a/src/irc/dcc/dcc-send.c +++ b/src/irc/dcc/dcc-send.c @@ -77,7 +77,7 @@ static void dcc_send_add(const char *servertag, CHAT_DCC_REC *chat, char *fname; int i, ret, files, flags, queue, start_new_transfer; - globbuf.gl_offs = 0; + memset(&globbuf, 0, sizeof(globbuf)); flags = GLOB_NOCHECK | GLOB_TILDE; /* this loop parses all <file> parameters and adds them to glubbuf */ |