twain_32: Fix potentially uninitialized variable compiler warnings.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-06-08 14:17:35 +02:00
parent 0c5ebf4231
commit 4d60ab3744
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}