diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-06-05 11:41:50 +0200 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-06-05 13:46:43 +0200 |
commit | 4edfccfce794d4c10b2a92c02fe982bb089c6629 (patch) | |
tree | 936af89080c7b50d112d2567e5d5574fdfe75d5f /src/fe-common/core | |
parent | 48899a123d68051fbc73acb8ad151e89fdcb6b31 (diff) | |
download | irssi-4edfccfce794d4c10b2a92c02fe982bb089c6629.zip |
get rid of new_text
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 6a2c97dc..62e6f0de 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -197,15 +197,12 @@ static gboolean hilight_match_text(HILIGHT_REC *rec, const char *text, if (rec->regexp) { if (rec->preg != NULL) { MatchInfo *match; - const char *new_text = NULL; - - i_regex_match(rec->preg, text, 0, &match, &new_text); + i_regex_match(rec->preg, text, 0, &match); if (i_match_info_matches(match)) - ret = i_match_info_fetch_pos(match, 0, match_beg, match_end, new_text); + ret = i_match_info_fetch_pos(match, 0, match_beg, match_end); i_match_info_free(match); - g_free_not_null((char *)new_text); } } else { char *match; |