mount: fix incorrect usage of strtok (inadvertently used NULL sometimes). the change is "for(xxx)...." -> "if(var) for(xxx)...", but my gcc 4.1.2 adds _158 bytes_!! WTF?? 8(
No binary (build failed)
—
(log yok)
| @@ -886,8 +886,7 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts) | |
| nfsvers = 0; | |
| /* parse options */ | |
| - | |
| - | for (opt = strtok(filteropts, ","); opt; opt = strtok(NULL, ",")) { |
| + | if (filteropts) for (opt = strtok(filteropts, ","); opt; opt = strtok(NULL, ",")) { |
| char *opteq = strchr(opt, '='); | |
| if (opteq) { | |
| static const char *const options[] = { | |