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); |