twain_32: Avoid using an uninitialized variable in the failure path in path in a couple of cases.
This commit is contained in:
parent
d4db09d0e9
commit
fc324d97bc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue