Andrey Gusev : kernel32: Remove redundant comparison.

Alexandre Julliard julliard at winehq.org
Tue Jan 9 15:49:37 CST 2018


Module: wine
Branch: master
Commit: 061e2bbff1811d066f8ae34a4ef9b1d47967b048
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=061e2bbff1811d066f8ae34a4ef9b1d47967b048

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Tue Jan  9 13:24:20 2018 +0200

kernel32: Remove redundant comparison.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/kernel32/lcformat.c b/dlls/kernel32/lcformat.c
index 057b733..ecadd43 100644
--- a/dlls/kernel32/lcformat.c
+++ b/dlls/kernel32/lcformat.c
@@ -560,7 +560,7 @@ static INT NLS_GetDateTimeFormatW(LCID lcid, DWORD dwFlags,
                 ++format;
               }
               /* Only numeric day form matters */
-              if (*format && *format == 'd')
+              if (*format == 'd')
               {
                 INT dcount = 1;
                 while (*++format == 'd') dcount++;




More information about the wine-cvs mailing list