Michael Stefaniuc : msvcrt: Avoid identical if and else bodies (PVS-Studio ).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 18 09:57:18 CST 2015


Module: wine
Branch: master
Commit: e67a65c59e7013f22c3a873874e9552deef3b68a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e67a65c59e7013f22c3a873874e9552deef3b68a

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Feb 18 00:03:50 2015 +0100

msvcrt: Avoid identical if and else bodies (PVS-Studio).

---

 dlls/msvcrt/scanf.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/msvcrt/scanf.h b/dlls/msvcrt/scanf.h
index e85f343..9322704 100644
--- a/dlls/msvcrt/scanf.h
+++ b/dlls/msvcrt/scanf.h
@@ -423,8 +423,7 @@ _FUNCTION_ {
 
                     st = 1;
                     if (!suppress) {
-                        if (L_prefix) _SET_NUMBER_(double);
-                        else if (l_prefix) _SET_NUMBER_(double);
+                        if (L_prefix || l_prefix) _SET_NUMBER_(double);
                         else _SET_NUMBER_(float);
                     }
                 }




More information about the wine-cvs mailing list