diff --git a/src/search/regex.c b/src/search/regex.c
index 7de8d5b..f3e57e2 100644
a
|
b
|
mc_search__regex_found_cond_one (mc_search_t * mc_search, mc_search_regex_t * re |
258 | 258 | } |
259 | 259 | #else /* HAVE_LIBPCRE */ |
260 | 260 | |
261 | | if (regexec (regex, search_str->str, MC_SEARCH__NUM_REPL_ARGS, mc_search->regex_match_info, 0)) |
| 261 | if (regexec (regex, search_str->str, MC_SEARCH__NUM_REPLACE_ARGS, mc_search->regex_match_info, 0)) |
262 | 262 | return COND__NOT_FOUND; |
263 | 263 | |
264 | | for (mc_search->num_rezults = 0; mc_search->num_rezults < MC_SEARCH__NUM_REPL_ARGS; |
| 264 | for (mc_search->num_rezults = 0; mc_search->num_rezults < MC_SEARCH__NUM_REPLACE_ARGS; |
265 | 265 | mc_search->num_rezults++) { |
266 | 266 | if (mc_search->regex_match_info[mc_search->num_rezults].rm_eo == 0) |
267 | 267 | break; |
… |
… |
mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t * mc_sea |
547 | 547 | mc_search_cond->regex_handle = NULL; |
548 | 548 | return; |
549 | 549 | } |
550 | | mc_search->regex_match_info = g_new0 (mc_search_matchinfo_t, MC_SEARCH__NUM_REPL_ARGS); |
| 550 | mc_search->regex_match_info = g_new0 (mc_search_matchinfo_t, MC_SEARCH__NUM_REPLACE_ARGS); |
551 | 551 | #endif /* HAVE_LIBPCRE */ |
552 | 552 | #endif /* GLIB_CHECK_VERSION (2, 14, 0) */ |
553 | 553 | } |