mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02:00
build error decl after stmt
This commit is contained in:
parent
2439ad2c4e
commit
3f4e3d7294
1 changed files with 5 additions and 3 deletions
|
|
@ -197,13 +197,15 @@ static gboolean hilight_match_text(HILIGHT_REC *rec, SERVER_REC *server, const c
|
|||
int *match_beg, int *match_end)
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
WI_ITEM_REC *witem = window_item_find(server, channel);
|
||||
WI_ITEM_REC *witem;
|
||||
char *pattern;
|
||||
|
||||
if (rec->regexp && rec->preg == NULL)
|
||||
return ret;
|
||||
|
||||
char *pattern = rec->expando ? (parse_special_string(rec->regexp ? g_regex_get_pattern(rec->preg) : rec->text, server, witem, "", NULL, 0)) :
|
||||
rec->text;
|
||||
witem = window_item_find(server, channel);
|
||||
pattern = rec->expando ? (parse_special_string(rec->regexp ? g_regex_get_pattern(rec->preg) : rec->text, server, witem, "", NULL, 0)) :
|
||||
rec->text;
|
||||
|
||||
if (pattern == NULL || strlen(pattern) == 0)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue