diff options
author | Marco Peereboom <marco@conformal.com> | 2011-03-08 23:19:36 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-03-08 23:19:36 +0000 |
commit | 9a2df302b27a7c5ec2de39c4a8147cf612759e3e (patch) | |
tree | 9e5d19347bc5b6f087f0b7065ca6fb177dc196e3 | |
parent | 6b4fb6b177fe52c492a7bfca54c79281860642bf (diff) | |
download | xombrero-9a2df302b27a7c5ec2de39c4a8147cf612759e3e.tar.gz |
prevent NULL deref
-rw-r--r-- | xxxterm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c index 911f6db..d27d71f 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -5831,6 +5831,8 @@ notify_load_status_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t) case WEBKIT_LOAD_FINISHED: /* 2 */ uri = get_uri(wview); + if (uri == NULL) + return; if (!strncmp(uri, "http://", strlen("http://")) || !strncmp(uri, "https://", strlen("https://")) || |