From: Fredrik Tolf Date: Sun, 2 Mar 2014 00:25:34 +0000 (+0100) Subject: dirplex: Actually allow zero-argument index-file, as documented. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=7bf1ad5a2195774e6a69a3612a07321afeef60a8;p=ashd.git dirplex: Actually allow zero-argument index-file, as documented. --- diff --git a/src/dirplex/conf.c b/src/dirplex/conf.c index 76624a7..359bf0c 100644 --- a/src/dirplex/conf.c +++ b/src/dirplex/conf.c @@ -255,9 +255,7 @@ struct config *readconfig(char *file) cf->patterns = pat; } else if(!strcmp(s->argv[0], "index-file")) { freeca(cf->index); - cf->index = NULL; - if(s->argc > 1) - cf->index = cadup(s->argv + 1); + cf->index = cadup(s->argv + 1); } else if(!strcmp(s->argv[0], "capture")) { if(s->argc < 2) { flog(LOG_WARNING, "%s:%i: missing argument to capture declaration", s->file, s->lno);