(ftpd_popen): Correct initialization of `foo' before call to
`strtok_r' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1867 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -125,8 +125,8 @@ ftpd_popen(char *program, char *type, int do_stderr, int no_glob)
|
||||
return (NULL);
|
||||
|
||||
/* break up string into pieces */
|
||||
foo = NULL;
|
||||
for (argc = 0, cp = program;; cp = NULL) {
|
||||
foo = NULL;
|
||||
if (!(argv[argc++] = strtok_r(cp, " \t\n", &foo)))
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user