advapi32: Remove redundant NULL check before SERV_free (found by
Smatch)
James Hawkins
truiken at gmail.com
Thu Oct 5 21:38:07 CDT 2006
Hi,
Changelog:
* Remove redundant NULL check before SERV_free (found by Smatch).
dlls/advapi32/service.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
--
James Hawkins
-------------- next part --------------
diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index be0f41f..b1d80dc 100644
--- a/dlls/advapi32/service.c
+++ b/dlls/advapi32/service.c
@@ -433,8 +433,7 @@ static BOOL service_handle_start(HANDLE
goto end;
}
- if (service->args)
- SERV_free(service->args);
+ SERV_free(service->args);
service->args = args;
args = NULL;
service->thread = CreateThread( NULL, 0, service_thread,
--
1.4.2.1
More information about the wine-patches
mailing list