mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 01:52:19 +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)
|
int *match_beg, int *match_end)
|
||||||
{
|
{
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
WI_ITEM_REC *witem = window_item_find(server, channel);
|
WI_ITEM_REC *witem;
|
||||||
|
char *pattern;
|
||||||
|
|
||||||
if (rec->regexp && rec->preg == NULL)
|
if (rec->regexp && rec->preg == NULL)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
char *pattern = rec->expando ? (parse_special_string(rec->regexp ? g_regex_get_pattern(rec->preg) : rec->text, server, witem, "", NULL, 0)) :
|
witem = window_item_find(server, channel);
|
||||||
rec->text;
|
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)
|
if (pattern == NULL || strlen(pattern) == 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue