Michael Stefaniuc : shlwapi: Remove redundant not-NULL check (coccinellery ).
Alexandre Julliard
julliard at winehq.org
Thu Feb 28 16:09:42 CST 2019
Module: wine
Branch: master
Commit: 500c5d1216d4c91d10ecd133f718eb07218eb56e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=500c5d1216d4c91d10ecd133f718eb07218eb56e
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Thu Feb 28 00:50:32 2019 +0100
shlwapi: Remove redundant not-NULL check (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shlwapi/string.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c
index d400f8b..7b8473a 100644
--- a/dlls/shlwapi/string.c
+++ b/dlls/shlwapi/string.c
@@ -1527,8 +1527,7 @@ HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest,
if (!src)
{
WARN("Invalid lpStrRet would crash under Win32!\n");
- if (dest)
- *dest = '\0';
+ *dest = '\0';
return E_FAIL;
}
More information about the wine-cvs
mailing list