Prevent NULL pointer access with plain text contents

This commit is contained in:
Chris Young 2012-11-10 22:26:43 +00:00
parent 41ed8e3da3
commit f2ab822a83

View File

@ -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)