mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
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:
parent
8465a99ce7
commit
68de720723
@ -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[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user