X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdirplex%2Fconf.c;fp=src%2Fdirplex%2Fconf.c;h=359bf0c3359a76110c9766d863b4bd68cb60ec04;hb=7bf1ad5a2195774e6a69a3612a07321afeef60a8;hp=76624a7644a3e050be3734b8061c350ba8a601e3;hpb=4364a29e8918a1019e21d7ccc6a5e6d837c73580;p=ashd.git 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);