diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2019-01-07 21:24:46 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-01-08 01:23:21 +0100 |
commit | f2ca5980e9ec27f94684088c153a218f08f8176e (patch) | |
tree | b05881d625b98e95821eca71adc76fe5bf10eef9 | |
parent | 63b03c6b36c7b9ae9c7b6cf8063445146b4f8210 (diff) | |
download | calcurse-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>
-rw-r--r-- | src/args.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |