build error decl after stmt

This commit is contained in:
Jari Matilainen 2018-01-20 14:09:49 +01:00
commit 3f4e3d7294

View file

@ -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;