Control: tags -1 + patch

Dear Maintainer,

The attached patch fixes this issue, by explicitly initializing those
structure fields to zero (false) before loading the configuration file.

Note: This patch is tested against mousepad_0.2.16-6.

Regards,
Nachanon Vetjasit
From: Nachanon Vetjasit <nachanon.vetja...@gmail.com>
Subject: Fix Mousepad's uninitialized search/replace option variables
Bug-Debian: https://bugs.debian.org/774747

--- a/src/main.c
+++ b/src/main.c
@@ -168,6 +168,8 @@
 	GtkItemFactory *ifactory;
 	
+	sd->search.match_case=0;
+	sd->search.replace_all=0;
 	load_config_file(sd);
 	sd->mainwin = create_main_window(sd);
 	gtk_widget_show_all(sd->mainwin->window);
 	

Reply via email to