1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-25 12:29:34 +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:
Peter Evans 2018-03-13 00:33:32 -05:00
parent 090307f4fe
commit f33f9cd493

View File

@ -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;
}