]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix crash bug when calling nicksearch () - introduced by previous crash fixes
authorPaul <redacted>
Wed, 26 Oct 2005 17:06:00 +0000 (18:06 +0100)
committerPaul <redacted>
Wed, 26 Oct 2005 17:06:00 +0000 (18:06 +0100)
newsearch/newsearch.c

index 1b7701c04e003ced3d10f78c9323e62880fbf0c3..466559ced750ffcf19d2796b9b7244dccedea219 100644 (file)
@@ -201,6 +201,7 @@ struct searchNode *search_parse(int type, char *input) {
     /* Split further args */
     i=-1; /* i = -1 BoW, 0 = inword, 1 = bracket nest depth */
     j=0;  /* j = current arg */
+    argvector[0]="";
     for (ch=input;*ch;ch++) {
       if (i==-1) {
        argvector[j]=ch;