Return to pattern.c CVS log | Up to [local] / src / usr.bin / less |
version 1.7, 2015/11/06 15:50:33 | version 1.8, 2015/11/09 16:39:13 | ||
---|---|---|---|
|
|
||
comp = ecalloc(1, sizeof (regex_t)); | comp = ecalloc(1, sizeof (regex_t)); | ||
if (regcomp(comp, pattern, less_is_more ? 0 : REGCOMP_FLAG)) { | if (regcomp(comp, pattern, less_is_more ? 0 : REGCOMP_FLAG)) { | ||
free(comp); | free(comp); | ||
error("Invalid pattern", NULL_PARG); | error("Invalid pattern", NULL); | ||
return (-1); | return (-1); | ||
} | } | ||
if (*comp_pattern != NULL) | if (*comp_pattern != NULL) |