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(
This commit is contained in:
Denis Vlasenko 2007-05-09 20:38:04 +00:00
parent 8465a99ce7
commit 68de720723

View File

@ -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[] = {