From 55d72035ddd00fcb6fe39a86023f472eb020c14b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 11 Mar 1999 15:26:51 +0000 Subject: [PATCH] Fixed bug (introduced by previous commit). --- CHANGELOG | 3 +-- client/client.c | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2643508..2793503 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,8 +1,7 @@ Possible compatibility problems with earlier versions marked with '*'. Added support for GNU readline in client. Thanks to Jacob Poulsen -. GNU configure attempts to detect if readline -is available. +. GNU configure attempts to detect if readline is available. * CHANGED DEFINITION OF ES: UPDATE (INCLUDING THE OID) to reflect the new definition from the ZIG. NOTE THIS IF YOU HAVE AN UPDATE diff --git a/client/client.c b/client/client.c index 1016778..8ebfbcb 100644 --- a/client/client.c +++ b/client/client.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: client.c,v $ - * Revision 1.76 1999-03-11 11:12:07 adam + * Revision 1.77 1999-03-11 15:26:51 adam + * Fixed bug (introduced by previous commit). + * + * Revision 1.76 1999/03/11 11:12:07 adam * Added GNU readline support. HTML display in client. * * Revision 1.75 1999/02/01 15:37:32 adam @@ -1904,7 +1907,7 @@ static int client(int wait) char* line_in; line_in=readline(C_PROMPT); #if HAVE_READLINE_HISTORY_H - if (*line_in) + if (line && *line_in) add_history(line_in); #endif strcpy(line,line_in); -- 1.7.10.4