diff options
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -222,7 +222,7 @@ static int get_address(const char *str, int *line, regex_t **regex) | |||
222 | fatalError("unterminated match expression\n"); | 222 | fatalError("unterminated match expression\n"); |
223 | my_str[idx] = '\0'; | 223 | my_str[idx] = '\0'; |
224 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); | 224 | *regex = (regex_t *)xmalloc(sizeof(regex_t)); |
225 | xregcomp(*regex, my_str+1, REG_NEWLINE); | 225 | xregcomp(*regex, my_str+1, 0); |
226 | idx++; /* so it points to the next character after the last '/' */ | 226 | idx++; /* so it points to the next character after the last '/' */ |
227 | } | 227 | } |
228 | else { | 228 | else { |