twain32: fix a compiler warning on PC-BSD (resend)

Austin English austinenglish at gmail.com
Tue Mar 24 14:40:36 CDT 2009


dsm.c: In function 'test_single_source':
dsm.c:485: warning: 'orig_value' may be used uninitialized in this function
dsm.c:485: note: 'orig_value' was declared here
dsm.c:486: warning: 'default_value' may be used uninitialized in this function
dsm.c:486: note: 'default_value' was declared h

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c
index 6a53188..0cc8220 100644
--- a/dlls/twain_32/tests/dsm.c
+++ b/dlls/twain_32/tests/dsm.c
@@ -482,8 +482,8 @@ static void test_supported_sizes(TW_IDENTITY *appid, TW_IDENTITY *source, TW_INT
     TW_UINT32 val;
     TW_UINT16 type;
     TW_INT32 actual_support;
-    TW_UINT32 orig_value;
-    TW_UINT32 default_value;
+    TW_UINT32 orig_value = TWSS_NONE;
+    TW_UINT32 default_value = TWSS_NONE;
     TW_UINT32 new_value = TWSS_NONE;
 
 


More information about the wine-patches mailing list