From b16511344e950a17fac0f7ea1dfe3513c821c229 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 20 Nov 2016 15:04:51 -0800 Subject: [PATCH] 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. --- src/parse_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_util.cpp b/src/parse_util.cpp index a5f96f132..a7825c9e5 100644 --- a/src/parse_util.cpp +++ b/src/parse_util.cpp @@ -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'\\'; } }