cmd: Avoid dead assignments (Clang) (try 2)

Frédéric Delanoy frederic.delanoy at gmail.com
Tue Oct 4 03:42:22 CDT 2011


try 2: remove the assigment instead of the break
---
 programs/cmd/builtins.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 0df123a..4d41004 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -1678,7 +1678,6 @@ void WCMD_move (void) {
     /* Step on to next match */
     if (FindNextFileW(hff, &fd) == 0) {
       FindClose(hff);
-      hff = INVALID_HANDLE_VALUE;
       break;
     }
   }
@@ -1870,7 +1869,6 @@ void WCMD_rename (void) {
     /* Step on to next match */
     if (FindNextFileW(hff, &fd) == 0) {
       FindClose(hff);
-      hff = INVALID_HANDLE_VALUE;
       break;
     }
   }
@@ -2082,7 +2080,6 @@ void WCMD_setshow_default (const WCHAR *command) {
       /* Step on to next match */
       if (FindNextFileW(hff, &fd) == 0) {
         FindClose(hff);
-        hff = INVALID_HANDLE_VALUE;
         break;
       }
     }
-- 
1.7.6.3




More information about the wine-patches mailing list