summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2019-01-07 21:24:46 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2019-01-08 01:23:21 +0100
commitf2ca5980e9ec27f94684088c153a218f08f8176e (patch)
treeb05881d625b98e95821eca71adc76fe5bf10eef9 /src
parent63b03c6b36c7b9ae9c7b6cf8063445146b4f8210 (diff)
downloadcalcurse-f2ca5980e9ec27f94684088c153a218f08f8176e.tar.gz
calcurse-f2ca5980e9ec27f94684088c153a218f08f8176e.zip
Initialize data paths once only
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r--src/args.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/args.c b/src/args.c
index 9986886..52496cd 100644
--- a/src/args.c
+++ b/src/args.c
@@ -505,6 +505,9 @@ int parse_args(int argc, char **argv)
case 'D':
datadir = optarg;
break;
+ case 'c':
+ cfile = optarg;
+ break;
}
}
io_init(cfile, datadir, confdir);
@@ -522,8 +525,6 @@ int parse_args(int argc, char **argv)
query = 1;
break;
case 'c':
- cfile = optarg;
- io_init(cfile, datadir, confdir);
break;
case 'C':
break;