summaryrefslogtreecommitdiff
path: root/src/custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/custom.c')
-rw-r--r--src/custom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/custom.c b/src/custom.c
index e8cf0fe..1169b18 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -270,9 +270,10 @@ custom_load_conf (struct conf *conf, int background)
var = 0;
break;
case CUSTOM_CONF_PERIODICSAVE:
- conf->periodic_save = atoi (e_conf);
- if (conf->periodic_save < 0)
+ if (atoi (e_conf) < 0)
conf->periodic_save = 0;
+ else
+ conf->periodic_save = atoi (e_conf);
var = 0;
break;
case CUSTOM_CONF_CONFIRMQUIT: