projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730ea4c
)
Fix segfault in xwidget when there is no title
author
Jeff Walsh
<fejfighter@gmail.com>
Thu, 15 Oct 2020 07:55:29 +0000
(09:55 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 15 Oct 2020 07:55:29 +0000
(09:55 +0200)
* src/xwidget.c (Fxwidget_webkit_title): Pass emptry string when no
title is returned (bug#43989).
src/xwidget.c
patch
|
blob
|
history
diff --git
a/src/xwidget.c
b/src/xwidget.c
index 154b3e9c82c91462ffd28b7ab16d4a46a845e301..e63191ebda983bb0555f350ac97d57883662d476 100644
(file)
--- a/
src/xwidget.c
+++ b/
src/xwidget.c
@@
-793,7
+793,9
@@
DEFUN ("xwidget-webkit-title",
WEBKIT_FN_INIT ();
#ifdef USE_GTK
WebKitWebView *wkwv = WEBKIT_WEB_VIEW (xw->widget_osr);
- return build_string (webkit_web_view_get_title (wkwv));
+ const gchar *title = webkit_web_view_get_title (wkwv);
+
+ return build_string (title ? title : "");
#elif defined NS_IMPL_COCOA
return nsxwidget_webkit_title (xw);
#endif