summaryrefslogtreecommitdiff
path: root/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/handle.c b/handle.c
index 3f05a46..240018e 100644
--- a/handle.c
+++ b/handle.c
@@ -873,6 +873,9 @@ do_pointer(char *line, int len)
return;
}
strval = copy_to_scratch(line, n);
+ if (strval == NULL)
+ /* copy_to_scratch already printed error message */
+ return;
ok = parse_number (strval, &val);
if (!ok || val >= MAXBUTTONCODES) {
badmsg ("value %s given for buttons list", strval);