Gerald Pfeifer : twain_32: Avoid using an uninitialized variable in the failure path in path in a couple of cases.
Module: wine Branch: master Commit: fc324d97bcc59ec7ee1ce5f73a563ba69fb436ea URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc324d97bcc59ec7ee1ce5f73a... Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Sat Feb 28 14:39:34 2015 +0100 twain_32: Avoid using an uninitialized variable in the failure path in path in a couple of cases. --- dlls/twain_32/tests/dsm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c index b8f1c9e..ab6e84f 100644 --- a/dlls/twain_32/tests/dsm.c +++ b/dlls/twain_32/tests/dsm.c @@ -71,6 +71,8 @@ static BOOL get_onevalue(TW_HANDLE hcontainer, TW_UINT32 *ret, TW_UINT16 *type) GlobalUnlock(hcontainer); return TRUE; } + else + *ret = 0; return FALSE; }
participants (1)
-
Alexandre Julliard