cmd: avoid assigning a variable to itself (LLVM/Clang)
Austin English
austinenglish at gmail.com
Tue Apr 12 18:20:28 CDT 2011
--
-Austin
-------------- next part --------------
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 944a997..63a801b 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -686,9 +686,9 @@ BOOL WCMD_delete (WCHAR *command, BOOL expectDir) {
/* Now check result, keeping a running boolean about whether it
matches all parsed attributes so far */
if (attribute && !negate) {
- stillOK = stillOK;
+ stillOK = TRUE;
} else if (!attribute && negate) {
- stillOK = stillOK;
+ stillOK = TRUE;
} else {
stillOK = FALSE;
}
More information about the wine-patches
mailing list