From 66ae0ec9dd9f47117bc9c74b8458a11e465674d8 Mon Sep 17 00:00:00 2001 From: jave Date: Wed, 7 Jan 2015 16:12:04 +0100 Subject: [PATCH] Added two CHECK_STRING of arguments Suggested by Eli Zaretski --- src/xwidget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xwidget.c b/src/xwidget.c index 94b5c8aa26b..fc4ec80bef9 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -1129,6 +1129,7 @@ DEFUN ("xwidget-webkit-goto-uri", Fxwidget_webkit_goto_uri, Sxwidget_webkit_got (Lisp_Object xwidget, Lisp_Object uri) { WEBKIT_FN_INIT(); + CHECK_STRING(uri); webkit_web_view_load_uri ( WEBKIT_WEB_VIEW(xw->widget_osr), SDATA(uri)); return Qnil; } @@ -1140,6 +1141,7 @@ DEFUN ("xwidget-webkit-execute-script", Fxwidget_webkit_execute_script, Sxwidge (Lisp_Object xwidget, Lisp_Object script) { WEBKIT_FN_INIT(); + CHECK_STRING(script); webkit_web_view_execute_script( WEBKIT_WEB_VIEW(xw->widget_osr), SDATA(script)); return Qnil; } -- 2.39.2