aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input.c b/input.c
index 45ccefd6..693b6f32 100644
--- a/input.c
+++ b/input.c
@@ -1078,6 +1078,9 @@ input_reply(struct input_ctx *ictx, const char *fmt, ...)
va_list ap;
char *reply;
+ if (bev == NULL)
+ return;
+
va_start(ap, fmt);
xvasprintf(&reply, fmt, ap);
va_end(ap);