sh: Fix some dead stores.
Found by: clang static analyzer
This commit is contained in:
parent
20893a44b7
commit
acb4eada18
@ -463,7 +463,6 @@ expbackq(union node *cmd, int quoted, int flag, struct worddest *dst)
|
|||||||
argbackq = saveargbackq;
|
argbackq = saveargbackq;
|
||||||
|
|
||||||
p = in.buf;
|
p = in.buf;
|
||||||
lastc = '\0';
|
|
||||||
nnl = 0;
|
nnl = 0;
|
||||||
if (!quoted && flag & EXP_SPLIT)
|
if (!quoted && flag & EXP_SPLIT)
|
||||||
ifs = ifsset() ? ifsval() : " \t\n";
|
ifs = ifsset() ? ifsval() : " \t\n";
|
||||||
@ -1288,7 +1287,7 @@ patmatch(const char *pattern, const char *string)
|
|||||||
if (wc == 0)
|
if (wc == 0)
|
||||||
goto backtrack;
|
goto backtrack;
|
||||||
} else
|
} else
|
||||||
wc = (unsigned char)*q++;
|
q++;
|
||||||
break;
|
break;
|
||||||
case '*':
|
case '*':
|
||||||
c = *p;
|
c = *p;
|
||||||
|
@ -359,7 +359,7 @@ histcmd(int argc, char **argv __unused)
|
|||||||
* cursor, set it back to the current
|
* cursor, set it back to the current
|
||||||
* entry.
|
* entry.
|
||||||
*/
|
*/
|
||||||
retval = history(hist, &he,
|
history(hist, &he,
|
||||||
H_NEXT_EVENT, oldhistnum);
|
H_NEXT_EVENT, oldhistnum);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user