summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-11-10 22:26:43 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-11-10 22:26:43 +0000
commitf2ab822a83537427cbc914dcc5fc575e5ddbaee7 (patch)
treed393ca61d6dd56be380b26486fc48a8820a401c7 /desktop
parent41ed8e3da349e362799e2f5821abcfc6440ae487 (diff)
downloadnetsurf-f2ab822a83537427cbc914dcc5fc575e5ddbaee7.tar.gz
netsurf-f2ab822a83537427cbc914dcc5fc575e5ddbaee7.tar.bz2
Prevent NULL pointer access with plain text contents
Diffstat (limited to 'desktop')
-rw-r--r--desktop/selection.c2
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)