fix null dereference (coverity 1127058)

This commit is contained in:
Vincent Sanders 2013-11-27 21:31:00 +00:00
parent e0883a40bb
commit 447ab79e89
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}