Alexandre Julliard : scrobj: Initialize a variable to silence a compiler warning.
Module: wine Branch: master Commit: bf0225753a051fbf6753570488396c528babd2f4 URL: https://gitlab.winehq.org/wine/wine/-/commit/bf0225753a051fbf6753570488396c5... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jan 26 22:04:50 2023 +0100 scrobj: Initialize a variable to silence a compiler warning. --- dlls/scrobj/scrobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/scrobj/scrobj.c b/dlls/scrobj/scrobj.c index 90cf2024537..5056977624a 100644 --- a/dlls/scrobj/scrobj.c +++ b/dlls/scrobj/scrobj.c @@ -1188,7 +1188,7 @@ static HRESULT create_scriptlet_instance(struct scriptlet_factory *factory, IDis struct script_host *factory_host, *host; struct scriptlet_instance *obj; IDispatch *script_dispatch; - HRESULT hres; + HRESULT hres = S_OK; if (!(obj = calloc(1, sizeof(*obj)))) return E_OUTOFMEMORY;
participants (1)
-
Alexandre Julliard