From 467815d465195ac7fe05449e074963585c4eaf9f Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Tue, 10 Mar 2020 00:12:50 +0100 Subject: Improve ical import logging The log file is not deleted if items were skipped (adresses Github issue #269). The log file includes the import file name and time. The import line numbers have been corrected (and tests amended). Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/args.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/args.c') diff --git a/src/args.c b/src/args.c index bd58960..b2ccb0a 100644 --- a/src/args.c +++ b/src/args.c @@ -425,7 +425,8 @@ int parse_args(int argc, char **argv) int dump_imported = 0, export_uid = 0; /* Data file locations */ const char *datadir = NULL; - const char *cfile = NULL, *ifile = NULL, *confdir = NULL; + const char *cfile = NULL, *confdir = NULL; + char *ifile = NULL; int non_interactive = 1; int ch, cpid, type; -- cgit v1.2.3-54-g00ecf