mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
Remove the regexp_compiled field.
It was made redundant by the introduction of the pointer to the GRegex structure. Silence the compiler warning in textbuffer.c about preg being initialized by setting it to NULL.
This commit is contained in:
parent
b5a727c87c
commit
3fcd3cd2b9
6 changed files with 11 additions and 22 deletions
|
|
@ -543,6 +543,8 @@ GList *textbuffer_find_text(TEXT_BUFFER_REC *buffer, LINE_REC *startline,
|
|||
g_return_val_if_fail(buffer != NULL, NULL);
|
||||
g_return_val_if_fail(text != NULL, NULL);
|
||||
|
||||
preg = NULL;
|
||||
|
||||
if (regexp) {
|
||||
preg = g_regex_new(text, (case_sensitive ? 0 : G_REGEX_CASELESS), 0, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue