summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2013-02-18 21:41:34 +0100
committerportix <none@none>2013-02-18 21:41:34 +0100
commitefbfa138fded83487e15ce596693a20d3c2c7608 (patch)
tree4ff84a0430245273d6bb8a05df89fed1ea2c9eb1 /src
parent06ef9149dc7b88b6c4000f253ff6d29fcd891363 (diff)
downloaddwb-efbfa138fded83487e15ce596693a20d3c2c7608.zip
Fixing unitialzed values
Diffstat (limited to 'src')
-rw-r--r--src/scripts.c4
1 files changed, 2 insertions, 2 deletions
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;