[Xfce4-commits] <midori:master> sokoke_js_script_eval should not crash when js_message is NULL
Christian Dywan
noreply at xfce.org
Tue Sep 18 15:40:02 CEST 2012
Updating branch refs/heads/master
to 00bd3f08185f815c4d1419e5a6f6d86928f7fd40 (commit)
from d88b9776f2d3c1c1bf2aaf40c307082cb2597145 (commit)
commit 00bd3f08185f815c4d1419e5a6f6d86928f7fd40
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Mon Sep 17 17:04:31 2012 +0200
sokoke_js_script_eval should not crash when js_message is NULL
midori/sokoke.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/midori/sokoke.c b/midori/sokoke.c
index 6784168..5ef53d4 100644
--- a/midori/sokoke.c
+++ b/midori/sokoke.c
@@ -85,6 +85,8 @@ sokoke_js_script_eval (JSContextRef js_context,
{
JSStringRef js_message = JSValueToStringCopy (js_context,
js_exception, NULL);
+ g_return_val_if_fail (js_message != NULL, NULL);
+
value = sokoke_js_string_utf8 (js_message);
if (exception)
*exception = value;
More information about the Xfce4-commits
mailing list