mirror of
https://github.com/pevans/erc-c.git
synced 2025-02-17 07:32:05 +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
@ -74,11 +74,7 @@ vm_debug_next_arg(char **str)
|
||||
{
|
||||
char *tok;
|
||||
|
||||
while ((tok = strsep(str, " "))){
|
||||
if (tok == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
while ((tok = strsep(str, " "))) {
|
||||
if (*tok == '\0') {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user