(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:
Assar Westerlund
1997-06-08 17:17:14 +00:00
parent 057545b3ed
commit 948ba95895

View File

@@ -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;
}