From a4ea7dcced79434ecaea78faf3ec1f31a6e4e199 Mon Sep 17 00:00:00 2001 From: Ed Schaller Date: Fri, 15 Nov 2019 23:49:38 -0700 Subject: [PATCH] Fix comparison between wchar and ptr (#401) --- contrib/win32/win32compat/shell-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/win32/win32compat/shell-host.c b/contrib/win32/win32compat/shell-host.c index 089818134..d6b5ff0f1 100644 --- a/contrib/win32/win32compat/shell-host.c +++ b/contrib/win32/win32compat/shell-host.c @@ -1486,7 +1486,7 @@ wmain(int ac, wchar_t **av) while (*exec_command != L'\0' && *exec_command == L' ') exec_command++; - if (exec_command == L'\0') + if (*exec_command == L'\0') goto usage; if (with_pty)