Michael Stefaniuc : wcmd: Remove an unused variable (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 23 09:04:43 CST 2015


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sat Feb 21 18:23:01 2015 +0100

wcmd: Remove an unused variable (PVS-Studio).

---

 programs/cmd/wcmdmain.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index e5865e6..bc9b216 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -1046,7 +1046,6 @@ void WCMD_run_program (WCHAR *command, BOOL called)
   WCHAR  pathext[MAXSTRING];
   WCHAR *firstParam;
   BOOL  extensionsupplied = FALSE;
-  BOOL  launched = FALSE;
   BOOL  status;
   DWORD len;
   static const WCHAR envPath[] = {'P','A','T','H','\0'};
@@ -1098,8 +1097,7 @@ void WCMD_run_program (WCHAR *command, BOOL called)
   pathposn = pathtosearch;
   WINE_TRACE("Searching in '%s' for '%s'\n", wine_dbgstr_w(pathtosearch),
              wine_dbgstr_w(stemofsearch));
-  while (!launched && pathposn) {
-
+  while (pathposn) {
     WCHAR  thisDir[MAX_PATH] = {'\0'};
     WCHAR *pos               = NULL;
     BOOL  found             = FALSE;




More information about the wine-cvs mailing list