fix incorrect pointer to int comparison

This came to my attention while testing the PR that switches us to the
C++11 standard and one of the compilers reported this error.
This commit is contained in:
Kurtis Rader 2016-11-20 15:04:51 -08:00
parent 1054a2fd36
commit b16511344e

View file

@ -492,7 +492,7 @@ void parse_util_get_parameter_info(const wcstring &cmd, const size_t pos, wchar_
bool finished = cmdlen != 0;
if (finished) {
finished = (quote == NULL);
if (finished && wcschr(L" \t\n\r", cmd_tmp[cmdlen - 1]) != NULL) {
if (finished && wcschr(L" \t\n\r", cmd_tmp[cmdlen - 1])) {
finished = cmdlen > 1 && cmd_tmp[cmdlen - 2] == L'\\';
}
}