mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
Prevent NULL pointer access with plain text contents
This commit is contained in:
parent
41ed8e3da3
commit
f2ab822a83
@ -1153,7 +1153,7 @@ bool save_handler(const char *text, size_t length, struct box *box,
|
||||
|
||||
assert(sv);
|
||||
|
||||
if (box->space > 0)
|
||||
if (box && (box->space > 0))
|
||||
space = 1;
|
||||
|
||||
if (whitespace_text)
|
||||
|
Loading…
Reference in New Issue
Block a user