summaryrefslogtreecommitdiff
path: root/desktop/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/selection.c')
-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)