Alexandre Julliard : twain_32: Fix potentially uninitialized variable compiler warnings.
Alexandre Julliard
julliard at winehq.org
Mon Jun 8 15:19:55 CDT 2020
Module: wine
Branch: master
Commit: 4d60ab3744d08f487626427038a580e7c2669806
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4d60ab3744d08f487626427038a580e7c2669806
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Jun 8 14:17:35 2020 +0200
twain_32: Fix potentially uninitialized variable compiler warnings.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/twain_32/tests/dsm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c
index 1e9764dccb..cf0f7b4270 100644
--- a/dlls/twain_32/tests/dsm.c
+++ b/dlls/twain_32/tests/dsm.c
@@ -72,7 +72,10 @@ static BOOL get_onevalue(TW_HANDLE hcontainer, TW_UINT32 *ret, TW_UINT16 *type)
return TRUE;
}
else
+ {
*ret = 0;
+ if (type) *type = 0;
+ }
return FALSE;
}
More information about the wine-cvs
mailing list