mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-02 01:04:33 +03:00
browser_window: Check for bw==NULL before dereferencing it
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
ba4c20a0c7
commit
6848cc890a
@ -2599,14 +2599,14 @@ browser_window_redraw(struct browser_window *bw,
|
||||
struct rect content_clip;
|
||||
nserror res;
|
||||
|
||||
x /= bw->scale;
|
||||
y /= bw->scale;
|
||||
|
||||
if (bw == NULL) {
|
||||
NSLOG(netsurf, INFO, "NULL browser window");
|
||||
return false;
|
||||
}
|
||||
|
||||
x /= bw->scale;
|
||||
y /= bw->scale;
|
||||
|
||||
if ((bw->current_content == NULL) &&
|
||||
(bw->children == NULL)) {
|
||||
/* Browser window has no content, render blank fill */
|
||||
|
Loading…
Reference in New Issue
Block a user