From dfcd482cb9c615dd3f0410d20f5d9a398e701ade Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 8 Oct 2009 22:57:43 +0200 Subject: [PATCH 1/1] Fix SEGV for quit command in cmdfile If cmdfile is passed to yaz-client (option -f) and that cmdfile included a 'quit' command that would result in a memory violation. --- client/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client.c b/client/client.c index cea207c..2692a9c 100644 --- a/client/client.c +++ b/client/client.c @@ -3899,9 +3899,10 @@ static void initialize(const char *rc_file) cmd_format("usmarc"); + file_history = file_history_new(); + source_rc_file(rc_file); - file_history = file_history_new(); file_history_load(file_history); file_history_trav(file_history, 0, add_to_readline_history); } -- 1.7.10.4