summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorSosthène Guédon <sosthene.gued@gmail.com>2019-06-16 11:00:15 +0200
committerSosthène Guédon <sosthene.gued@gmail.com>2019-06-16 11:00:15 +0200
commite6c3e7bc11f2e7bdd845ec0a89172b84b26ad7ab (patch)
tree1dddd7dbeba33c81d69909c0b8bc3c40d299c612 /src/main.c
parentea9eec41d0e26d0c892f094156ebed08bdd70b81 (diff)
Fix history saving issue
History didn't always save due to missing parentheses in the test for the configuration variable "nocurses"
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 473946e..29ab074 100644
--- a/src/main.c
+++ b/src/main.c
@@ -463,7 +463,7 @@ void delete_structures() {
int exit_app(int status) {
// free history
- if (! atoi((char *) get_conf_value("nocurses"))) {
+ if (! atoi((char *) (get_conf_value("nocurses")))) {
#ifdef HISTORY_FILE
if (! save_history(commandline_history, "w")) sc_error("Could not save commandline history");