BUG/MINOR: pattern: error message missing
This patch must be backported in 1.5 version.
This commit is contained in:
parent
2a3fb1c8bb
commit
8aa8384e22
@ -989,8 +989,10 @@ int pat_idx_list_ptr(struct pattern_expr *expr, struct pattern *pat, char **err)
|
||||
|
||||
/* allocate pattern */
|
||||
patl = calloc(1, sizeof(*patl));
|
||||
if (!patl)
|
||||
if (!patl) {
|
||||
memprintf(err, "out of memory while indexing pattern");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* duplicate pattern */
|
||||
memcpy(&patl->pat, pat, sizeof(*pat));
|
||||
|
Loading…
x
Reference in New Issue
Block a user