diff options
| author | jave | 2015-01-07 16:12:04 +0100 |
|---|---|---|
| committer | jave | 2015-01-07 16:12:04 +0100 |
| commit | 66ae0ec9dd9f47117bc9c74b8458a11e465674d8 (patch) | |
| tree | a51f1d9d0a34d6ff83b6e9d0f67328c41b891a8e /src | |
| parent | 5a0d5b71d55c73573c331e1e1a1dde9f206966e1 (diff) | |
| download | emacs-66ae0ec9dd9f47117bc9c74b8458a11e465674d8.tar.gz emacs-66ae0ec9dd9f47117bc9c74b8458a11e465674d8.zip | |
Added two CHECK_STRING of arguments
Suggested by Eli Zaretski
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
| 1129 | (Lisp_Object xwidget, Lisp_Object uri) | 1129 | (Lisp_Object xwidget, Lisp_Object uri) |
| 1130 | { | 1130 | { |
| 1131 | WEBKIT_FN_INIT(); | 1131 | WEBKIT_FN_INIT(); |
| 1132 | CHECK_STRING(uri); | ||
| 1132 | webkit_web_view_load_uri ( WEBKIT_WEB_VIEW(xw->widget_osr), SDATA(uri)); | 1133 | webkit_web_view_load_uri ( WEBKIT_WEB_VIEW(xw->widget_osr), SDATA(uri)); |
| 1133 | return Qnil; | 1134 | return Qnil; |
| 1134 | } | 1135 | } |
| @@ -1140,6 +1141,7 @@ DEFUN ("xwidget-webkit-execute-script", Fxwidget_webkit_execute_script, Sxwidge | |||
| 1140 | (Lisp_Object xwidget, Lisp_Object script) | 1141 | (Lisp_Object xwidget, Lisp_Object script) |
| 1141 | { | 1142 | { |
| 1142 | WEBKIT_FN_INIT(); | 1143 | WEBKIT_FN_INIT(); |
| 1144 | CHECK_STRING(script); | ||
| 1143 | webkit_web_view_execute_script( WEBKIT_WEB_VIEW(xw->widget_osr), SDATA(script)); | 1145 | webkit_web_view_execute_script( WEBKIT_WEB_VIEW(xw->widget_osr), SDATA(script)); |
| 1144 | return Qnil; | 1146 | return Qnil; |
| 1145 | } | 1147 | } |