cmd: avoid assigning a variable to itself (LLVM/Clang) (try 2)

Austin English austinenglish at gmail.com
Wed Apr 13 20:10:28 CDT 2011


-- 
-Austin
-------------- next part --------------
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 944a997..49ab5d7 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -683,15 +683,8 @@ BOOL WCMD_delete (WCHAR *command, BOOL expectDir) {
                         WCMD_output (WCMD_LoadMessage(WCMD_SYNTAXERR));
                     }
 
-                    /* Now check result, keeping a running boolean about whether it
-                       matches all parsed attributes so far                         */
-                    if (attribute && !negate) {
-                        stillOK = stillOK;
-                    } else if (!attribute && negate) {
-                        stillOK = stillOK;
-                    } else {
+                    if (!attribute && !negate)
                         stillOK = FALSE;
-                    }
                     thisA++;
                   }
 


More information about the wine-patches mailing list