| File src/utils/matchers.c changed (mode: 100644) (index 6aad77a43..587e9eaa3) |
| ... |
... |
matchers_t * |
| 81 |
81 |
matchers_alloc(const char expr[], const char list[], int cs_by_def, |
matchers_alloc(const char expr[], const char list[], int cs_by_def, |
| 82 |
82 |
int glob_by_def, const char on_empty_re[], char **error) |
int glob_by_def, const char on_empty_re[], char **error) |
| 83 |
83 |
{ |
{ |
|
84 |
|
*error = NULL; |
|
85 |
|
|
| 84 |
86 |
int nsubs; |
int nsubs; |
| 85 |
87 |
char **subs = break_into_matchers(list, &nsubs, /*is_list=*/0); |
char **subs = break_into_matchers(list, &nsubs, /*is_list=*/0); |
|
88 |
|
if(subs == NULL) |
|
89 |
|
{ |
|
90 |
|
return NULL; |
|
91 |
|
} |
| 86 |
92 |
|
|
| 87 |
93 |
MatcherExpr expr_kind = (glob_by_def ? ME_DEF_GLOB : ME_DEF_REGEX); |
MatcherExpr expr_kind = (glob_by_def ? ME_DEF_GLOB : ME_DEF_REGEX); |
| 88 |
94 |
matchers_t *matchers = matchers_init(expr, subs, nsubs, cs_by_def, |
matchers_t *matchers = matchers_init(expr, subs, nsubs, cs_by_def, |