Changeset: 3a4a52cff9c1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3a4a52cff9c1
Modified Files:
        clients/mapiclient/ReadlineTools.c
Branch: Feb2013
Log Message:

When creating new readline history file, use it.


diffs (12 lines):

diff --git a/clients/mapiclient/ReadlineTools.c 
b/clients/mapiclient/ReadlineTools.c
--- a/clients/mapiclient/ReadlineTools.c
+++ b/clients/mapiclient/ReadlineTools.c
@@ -401,7 +401,7 @@ init_readline(Mapi mid, char *lang, int 
                        case ENOENT:
                                /* history file didn't exist, so try to create
                                 * it and then try again */
-                               if ((f = fopen(_history_file, "w")) != NULL) {
+                               if ((f = fopen(_history_file, "w")) == NULL) {
                                        /* failed to create, don't
                                         * bother saving */
                                        _save_history = 0;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to