dav/scfg.c

changeset 144
c2c02c9b3be4
parent 142
0c0ccb7f71ba
child 145
82475dc12dd4
equal deleted inserted replaced
143:d8b01bed3d83 144:c2c02c9b3be4
144 dir->name = strdup(name); 144 dir->name = strdup(name);
145 dir->path = strdup(path); 145 dir->path = strdup(path);
146 dir->collection = collection ? strdup(collection) : NULL; 146 dir->collection = collection ? strdup(collection) : NULL;
147 dir->repository = strdup(repository); 147 dir->repository = strdup(repository);
148 dir->database = strdup(database); 148 dir->database = strdup(database);
149 dir->max_retry = DAV_MAX_RETRY;
149 if (include) { 150 if (include) {
150 dir->include = include; 151 dir->include = include;
151 } else { 152 } else {
152 regex_t *matchall = malloc(sizeof(regex_t)); 153 regex_t *matchall = malloc(sizeof(regex_t));
153 regcomp(matchall, ".*", REG_NOSUB); 154 regcomp(matchall, ".*", REG_NOSUB);

mercurial