gdbm/Fix-coredump-in-gdbmtool-history-command.patch
wangzhiqiang fe3e76def5 Fix coredump in gdbmtool history command
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
2022-06-28 10:11:17 +08:00

31 lines
900 B
Diff

From d3f504875cb94d2e458e1e233e5ab8b40281fe2b Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <gray@gnu.org>
Date: Mon, 27 Jun 2022 11:49:31 +0300
Subject: [PATCH] Fix bug#569
* src/gdbmshell.c (input_history_begin): return GDBMSHELL_ERR
if history is not available.
Conflict: tools/gdbmshell.c --> src/gdbmshell.c
Reference: https://puszcza.gnu.org.ua/bugs/index.php?569
---
src/gdbmshell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gdbmshell.c b/src/gdbmshell.c
index 4b84c23..12fc2bd 100644
--- a/src/gdbmshell.c
+++ b/src/gdbmshell.c
@@ -1714,7 +1714,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)
--
1.8.3.1