From efbfa138fded83487e15ce596693a20d3c2c7608 Mon Sep 17 00:00:00 2001 From: portix Date: Mon, 18 Feb 2013 21:41:34 +0100 Subject: Fixing unitialzed values --- src/scripts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/scripts.c b/src/scripts.c index 0494eaf1..abead018 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -415,7 +415,7 @@ wv_load_uri(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t arg if (argc == 0) return JSValueMakeBoolean(ctx, false); - WebKitWebView *wv; + WebKitWebView *wv = JSObjectGetPrivate(this); if (wv != NULL) { char *uri = js_value_to_char(ctx, argv[0], -1, exc); @@ -434,7 +434,7 @@ wv_load_uri(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t arg static JSValueRef wv_stop_loading(JSContextRef ctx, JSObjectRef function, JSObjectRef this, size_t argc, const JSValueRef argv[], JSValueRef* exc) { - WebKitWebView *wv; + WebKitWebView *wv = JSObjectGetPrivate(this);; if (wv != NULL) webkit_web_view_stop_loading(wv); return UNDEFINED; -- cgit v1.2.3