summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-02 15:46:22 +0100
committerPablo Barciela <[email protected]>2018-01-02 15:46:22 +0100
commit88a2e87f43a8ecb3b04176f2bda8a9f690c3fb16 (patch)
treeec25a7580aca84bcac6b9eba77da9d9e869ab9b6
parent2ebbfe05a87d24d56273036e9917102be8656a22 (diff)
downloadpluma-88a2e87f43a8ecb3b04176f2bda8a9f690c3fb16.tar.bz2
pluma-88a2e87f43a8ecb3b04176f2bda8a9f690c3fb16.tar.xz
pluma-document.c: Fix build warning:
‘replace_text_len’ may be used uninitialized in this function
-rw-r--r--pluma/pluma-document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pluma/pluma-document.c b/pluma/pluma-document.c
index ecc7f424..40cbfd43 100644
--- a/pluma/pluma-document.c
+++ b/pluma/pluma-document.c
@@ -2099,7 +2099,7 @@ pluma_document_replace_all (PlumaDocument *doc,
gint cont = 0;
gchar *search_text;
gchar *replace_text = NULL;
- gint replace_text_len;
+ gint replace_text_len = 0;
GtkTextBuffer *buffer;
gboolean brackets_highlighting;
gboolean search_highliting;