projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9f37e63
)
Yet another fix.
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 1999 14:14:25 +0000
(14:14 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 1999 14:14:25 +0000
(14:14 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
9e0fd13
..
2dd242a
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
- * Revision 1.78 1999-03-18 12:57:18 adam
+ * Revision 1.79 1999-03-23 14:14:25 adam
+ * Yet another fix.
+ *
+ * Revision 1.78 1999/03/18 12:57:18 adam
* Minor fix.
*
* Revision 1.77 1999/03/11 15:26:51 adam
* Minor fix.
*
* Revision 1.77 1999/03/11 15:26:51 adam
@@
-1909,9
+1912,11
@@
static int client(int wait)
#if HAVE_READLINE_READLINE_H
char* line_in;
line_in=readline(C_PROMPT);
#if HAVE_READLINE_READLINE_H
char* line_in;
line_in=readline(C_PROMPT);
+ if (!line_in)
+ break;
#if HAVE_READLINE_HISTORY_H
#if HAVE_READLINE_HISTORY_H
- if (line_in && *line_in)
- add_history(line_in);
+ if (*line_in)
+ add_history(line_in);
#endif
strcpy(line,line_in);
free (line_in);
#endif
strcpy(line,line_in);
free (line_in);