summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2013-11-27 21:31:00 +0000
committerVincent Sanders <vince@netsurf-browser.org>2013-11-27 21:31:00 +0000
commit447ab79e896abc72ff72bb495abba29759beb695 (patch)
tree3c3f93941d37b9154b9b432e59c93a6dfbe2c5b6 /monkey
parente0883a40bb8210438e3f65846b04cf42297c895c (diff)
downloadnetsurf-447ab79e896abc72ff72bb495abba29759beb695.tar.gz
netsurf-447ab79e896abc72ff72bb495abba29759beb695.tar.bz2
fix null dereference (coverity 1127058)
Diffstat (limited to 'monkey')
-rw-r--r--monkey/thumbnail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monkey/thumbnail.c b/monkey/thumbnail.c
index 334889510..e558c2b31 100644
--- a/monkey/thumbnail.c
+++ b/monkey/thumbnail.c
@@ -25,7 +25,8 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
struct gui_window *win = monkey_find_window_by_content(content);
if (win == NULL) {
fprintf(stdout, "GENERIC THUMBNAIL URL %s\n", nsurl_access(url));
+ } else {
+ fprintf(stdout, "WINDOW THUMBNAIL WIN %u URL %s\n", win->win_num, nsurl_access(url));
}
- fprintf(stdout, "WINDOW THUMBNAIL WIN %u URL %s\n", win->win_num, nsurl_access(url));
return false;
}