diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-10 22:26:43 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-10 22:26:43 +0000 |
commit | f2ab822a83537427cbc914dcc5fc575e5ddbaee7 (patch) | |
tree | d393ca61d6dd56be380b26486fc48a8820a401c7 | |
parent | 41ed8e3da349e362799e2f5821abcfc6440ae487 (diff) | |
download | netsurf-f2ab822a83537427cbc914dcc5fc575e5ddbaee7.tar.gz netsurf-f2ab822a83537427cbc914dcc5fc575e5ddbaee7.tar.bz2 |
Prevent NULL pointer access with plain text contents
-rw-r--r-- | desktop/selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 5633b1823..f4f44e117 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -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) |