Michael Stefaniuc : msvcrt: 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: cc12c0af716581b4c1339b4f9f612e2b350ffe50
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=cc12c0af716581b4c1339b4f9f612e2b350ffe50

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Feb 28 00:50:34 2019 +0100

msvcrt: Remove redundant not-NULL check (coccinellery).

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/mbcs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msvcrt/mbcs.c b/dlls/msvcrt/mbcs.c
index 9b22adc..1ea8163 100644
--- a/dlls/msvcrt/mbcs.c
+++ b/dlls/msvcrt/mbcs.c
@@ -2395,7 +2395,7 @@ MSVCRT_size_t CDECL MSVCRT__mbstowcs_l(MSVCRT_wchar_t *wcstr, const char *mbstr,
         }
     }
 
-    if(size<count && wcstr)
+    if(size<count)
         wcstr[size] = '\0';
 
     return size;




More information about the wine-cvs mailing list