From 91be647710d6d6df27b83211d9ff083e4949c7f1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 16 Nov 2003 16:49:51 +0000 Subject: Don't crash with /DCC SEND nick "" git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3142 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/dcc/dcc-send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irc/dcc') 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 parameters and adds them to glubbuf */ -- cgit v1.2.3