From c9903aedcbdbba4424344f4a7d9bd7e8efe61d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Mon, 30 Jan 2017 23:11:04 +0100 Subject: [PATCH] cmd: Remove dead assignments (clang). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Hentschel Signed-off-by: Alexandre Julliard --- programs/cmd/builtins.c | 2 +- programs/cmd/wcmdmain.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index f3dbe3a2ed0..7301f5439dd 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -4109,7 +4109,7 @@ void WCMD_setshow_env (WCHAR *s) { if (string[count-2] == '\r') string[count-2] = '\0'; /* Under Windoze we get CRLF! */ WINE_TRACE("set /p: Setting var '%s' to '%s'\n", wine_dbgstr_w(s), wine_dbgstr_w(string)); - status = SetEnvironmentVariableW(s, string); + SetEnvironmentVariableW(s, string); } /* See if /A supplied, and if so calculate the results of all the expressions */ diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 87f53877d38..1aa3c1ccc12 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -2527,8 +2527,6 @@ int wmain (int argc, WCHAR *argvW[]) /* Otherwise we now need to look in the path to see if we can find it */ } else { - p = thisArg + strlenW(thisArg); - /* Does file exist with this name? */ if (SearchPathW(NULL, thisArg, NULL, sizeof(string)/sizeof(WCHAR), string, NULL) != 0) { WINE_TRACE("Found on path as '%s'\n", wine_dbgstr_w(string));