Module: wine Branch: master Commit: cc12c0af716581b4c1339b4f9f612e2b350ffe50 URL: https://source.winehq.org/git/wine.git/?a=commit;h=cc12c0af716581b4c1339b4f9...
Author: Michael Stefaniuc mstefani@winehq.org Date: Thu Feb 28 00:50:34 2019 +0100
msvcrt: Remove redundant not-NULL check (coccinellery).
Signed-off-by: Michael Stefaniuc mstefani@winehq.org Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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;