Andrey Gusev : cmd: Remove redundant comparison.

Alexandre Julliard julliard at winehq.org
Tue Jan 9 15:49:37 CST 2018


Module: wine
Branch: master
Commit: b84fb5974fc2eb8abadacea62bd28dbc260e4c96
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b84fb5974fc2eb8abadacea62bd28dbc260e4c96

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Tue Jan  9 13:25:09 2018 +0200

cmd: Remove redundant comparison.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/cmd/builtins.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 0609bb7..14961d7 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -2173,7 +2173,7 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
   }
 
   /* Ensure line continues with variable */
-  if (!*thisArg || *thisArg != '%') {
+  if (*thisArg != '%') {
       WCMD_output_stderr (WCMD_LoadMessage(WCMD_SYNTAXERR));
       return;
   }




More information about the wine-cvs mailing list