pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc5f87
)
Prevent title from being empty when following an anchor
author
Quentin Rameau
<quinq.ml@gmail.com>
Sat, 8 Feb 2014 11:39:37 +0000
(12:39 +0100)
committer
Christoph Lohmann
<20h@r-36.net>
Sat, 8 Feb 2014 13:03:22 +0000
(14:03 +0100)
Signed-off-by: Christoph Lohmann <20h@r-36.net>
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
28d8465
..
1534f5c
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-1179,8
+1179,10
@@
stop(Client *c, const Arg *arg) {
static void
titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
const gchar *t = webkit_web_view_get_title(view);
- c->title = copystr(&c->title, t);
- updatetitle(c);
+ if (t) {
+ c->title = copystr(&c->title, t);
+ updatetitle(c);
+ }
}
static void