diff options
Diffstat (limited to 'src/lib/compat.cc')
-rw-r--r-- | src/lib/compat.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/compat.cc b/src/lib/compat.cc index 2faabc5..7db8be1 100644 --- a/src/lib/compat.cc +++ b/src/lib/compat.cc @@ -33,7 +33,7 @@ void SplitToVector(char* full, const char* delim, vector<char*>* vec, bool omit_empty_strings) { char *p = full; while (p) { - if (p = strpbrk(full, delim)) + if ((p = strpbrk(full, delim))) p[0] = '\0'; if (!omit_empty_strings || full[0] != '\0') vec->push_back(full); |