[PATCH] jscript: Initialize val_str (Coverity)

Marcus Meissner marcus at jet.franken.de
Mon Sep 28 02:18:49 CDT 2009


Hi,

spotted by Coverity, there are codepaths where it
was uninitialized.

Ciao, Marcus
---
 dlls/jscript/string.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c
index 4bb8091..55b6b85 100644
--- a/dlls/jscript/string.c
+++ b/dlls/jscript/string.c
@@ -200,7 +200,7 @@ static HRESULT do_attribute_tag_format(script_ctx_t *ctx, vdisp_t *jsthis, WORD
     StringInstance *string;
     const WCHAR *str;
     DWORD length;
-    BSTR attr_value, val_str;
+    BSTR attr_value, val_str = NULL;
     HRESULT hres;
 
     if(!(string = string_this(jsthis))) {
-- 
1.5.6



More information about the wine-patches mailing list