summaryrefslogtreecommitdiff
path: root/src/fe-text/textbuffer.c
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-01-29 16:22:14 +0100
committerAilin Nemui <ailin@z30a.localdomain>2017-01-02 17:50:14 +0100
commit3fcd3cd2b9fae07a0b7cd3e5ba91049f19cc6501 (patch)
tree2f8cc52b98a0cc43acf7f4887984d70000a12e3e /src/fe-text/textbuffer.c
parentb5a727c87cf7db944ade9c6714385f1e8598d37e (diff)
downloadirssi-3fcd3cd2b9fae07a0b7cd3e5ba91049f19cc6501.zip
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.
Diffstat (limited to 'src/fe-text/textbuffer.c')
-rw-r--r--src/fe-text/textbuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/textbuffer.c b/src/fe-text/textbuffer.c
index 979b2a46..7d0806d1 100644
--- a/src/fe-text/textbuffer.c
+++ b/src/fe-text/textbuffer.c
@@ -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);