]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
parse(): make reentrant
authorWilliam Pitcock <redacted>
Mon, 25 Oct 2010 02:02:32 +0000 (21:02 -0500)
committerWilliam Pitcock <redacted>
Mon, 25 Oct 2010 02:02:32 +0000 (21:02 -0500)
src/parse.c

index 18adef8b9cb7bb536eaa9e9745a8a987e5a26fe5..a8ce091c77e76a4c83b446c3f0e3a9bb600a40ef 100644 (file)
 static struct Dictionary *cmd_dict = NULL;
 struct Dictionary *alias_dict = NULL;
 
-/*
- * NOTE: parse() should not be called recursively by other functions!
- */
-static char *sender;
-
 /* parv[0] is not used, and parv[LAST] == NULL */
 static char *para[MAXPARA + 2];
 
@@ -116,12 +111,13 @@ string_to_array(char *string, char **parv)
 
 /* parse()
  *
- * given a raw buffer, parses it and generates parv, parc and sender
+ * given a raw buffer, parses it and generates parv and parc
  */
 void
 parse(struct Client *client_p, char *pbuffer, char *bufend)
 {
        struct Client *from = client_p;
+       char *sender;
        char *ch;
        char *s;
        char *end;