[gtksourceview] SearchContext: fix a crash with backward regex search



commit e7607584ec354118509f8985b7819a491d555961
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Aug 15 17:22:02 2013 +0200

    SearchContext: fix a crash with backward regex search

 gtksourceview/gtksourcesearchcontext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcesearchcontext.c b/gtksourceview/gtksourcesearchcontext.c
index ca36d91..bae718c 100644
--- a/gtksourceview/gtksourcesearchcontext.c
+++ b/gtksourceview/gtksourcesearchcontext.c
@@ -797,7 +797,7 @@ basic_backward_regex_search (GtkSourceSearchContext *search,
        GMatchInfo *match_info;
        GtkTextIter iter;
        gint iter_byte_pos;
-       gboolean found;
+       gboolean found = FALSE;
        GtkTextIter tmp_match_start;
        GtkTextIter tmp_match_end;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]