[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43989:
From: |
Lars Ingebrigtsen |
Subject: |
bug#43989: |
Date: |
Thu, 15 Oct 2020 09:56:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Fejfighter <fejfighter@gmail.com> writes:
> * src/xwidget.c (Fxwidget_webkit_title): pass emptry string when no
> title is returned
Thanks, applied to Emacs 28 with one change:
> 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?: "");
The "Elvis operator" is a gcc-only extension to C, I think? So I
rewrote it to use a traditional ternary instead.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no