aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/processor/tokenize.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/processor/tokenize.cc b/src/processor/tokenize.cc
index a5b028e3..f468120c 100644
--- a/src/processor/tokenize.cc
+++ b/src/processor/tokenize.cc
@@ -62,10 +62,8 @@ bool Tokenize(char *line,
}
// If there's anything left, just add it as a single token.
- if (!remaining > 0) {
- if ((token = strtok_r(NULL, "\r\n", &save_ptr))) {
- tokens->push_back(token);
- }
+ if (remaining == 0 && (token = strtok_r(NULL, "\r\n", &save_ptr))) {
+ tokens->push_back(token);
}
return tokens->size() == static_cast<unsigned int>(max_tokens);