From b86b84e2a98bb3363882f3aaab45e24b1e2add50 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 20 Nov 2016 00:30:55 -0800 Subject: [PATCH] L'\0' is not a pointer, don't compare it to one Compare to NULL instead. Comparison with original code shows this is what is intended. --- 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 5e84f2fcf..a5f96f132 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]) != L'\0') { + if (finished && wcschr(L" \t\n\r", cmd_tmp[cmdlen - 1]) != NULL) { finished = cmdlen > 1 && cmd_tmp[cmdlen - 2] == L'\\'; } }