From 88a2e87f43a8ecb3b04176f2bda8a9f690c3fb16 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Tue, 2 Jan 2018 15:46:22 +0100 Subject: pluma-document.c: Fix build warning: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘replace_text_len’ may be used uninitialized in this function --- pluma/pluma-document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pluma') 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; -- cgit v1.2.1