msvcrt: Avoid identical if and else bodies (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Tue Feb 17 17:03:50 CST 2015
---
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);
}
}
--
1.9.3
More information about the wine-patches
mailing list