mirror of
https://github.com/pevans/erc-c.git
synced 2024-09-29 11:55:01 +00:00
Remove unnecessary check if tok == NULL
This also corrects a formatting error (no space between the rparen of the if and the lbrace of the code block).
This commit is contained in:
parent
090307f4fe
commit
f33f9cd493
@ -75,10 +75,6 @@ vm_debug_next_arg(char **str)
|
|||||||
char *tok;
|
char *tok;
|
||||||
|
|
||||||
while ((tok = strsep(str, " "))) {
|
while ((tok = strsep(str, " "))) {
|
||||||
if (tok == NULL) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (*tok == '\0') {
|
if (*tok == '\0') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user