dav/scfg.c

changeset 402
babdf40dd22c
parent 401
3bb3210f3e6e
child 414
ea50585ec9d9
equal deleted inserted replaced
401:3bb3210f3e6e 402:babdf40dd22c
392 } else { 392 } else {
393 regex_t *matchnothing = malloc(sizeof(regex_t)); 393 regex_t *matchnothing = malloc(sizeof(regex_t));
394 regcomp(matchnothing, "///", REG_NOSUB); 394 regcomp(matchnothing, "///", REG_NOSUB);
395 dir->exclude = ucx_list_append(NULL, matchnothing); 395 dir->exclude = ucx_list_append(NULL, matchnothing);
396 } 396 }
397 dir->tagfilter = tagfilter;
397 398
398 if (trash && sstrtrim(sstr(trash)).length > 0) { 399 if (trash && sstrtrim(sstr(trash)).length > 0) {
399 if (trash[0] == '/' || trash[0] == '$') { 400 if (trash[0] == '/' || trash[0] == '$') {
400 dir->trash = scfg_create_path(trash); 401 dir->trash = scfg_create_path(trash);
401 } else { 402 } else {

mercurial