diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c index f39821385bb..52d6df8150f 100644 --- a/common/console.c +++ b/common/console.c @@ -846,6 +846,8 @@ int console_record_readline(char *str, int maxlen) { if (gd->flags & GD_FLG_RECORD_OVF) return -ENOSPC; + if (console_record_isempty()) + return -ENOENT; return membuff_readline((struct membuff *)&gd->console_out, str, maxlen, '\0', false); |