summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2022-06-27 11:49:31 +0300
committerSergey Poznyakoff <gray@gnu.org>2022-06-27 11:49:31 +0300
commitd3f504875cb94d2e458e1e233e5ab8b40281fe2b (patch)
tree742f161a6fa3ffe60268fea425ebb70848a3c343
parentc96c160375bd1f3861651311e8645fb6478a1ffd (diff)
downloadgdbm-d3f504875cb94d2e458e1e233e5ab8b40281fe2b.tar.gz
Fix bug #569
* tools/gdbmshell.c (input_history_begin): return GDBMSHELL_ERR if history is not available.
-rw-r--r--tools/gdbmshell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gdbmshell.c b/tools/gdbmshell.c
index f3cbae8..71cca72 100644
--- a/tools/gdbmshell.c
+++ b/tools/gdbmshell.c
@@ -1900,7 +1900,7 @@ input_history_begin (struct command_param *param,
/* TRANSLATORS: %s is the stream name */
terror (_("input history is not available for %s input stream"),
input_stream_name ());
- return GDBMSHELL_OK;
+ return GDBMSHELL_ERR;
}
switch (param->argc)