[vte] widget: Init variable



commit 916a5cb9d440a6391dd809d01ee72754b8e6216f
Author: Christian Persch <chpe gnome org>
Date:   Sun May 29 01:05:16 2011 +0200

    widget: Init variable
    
    Fixes a potential condition depending on an uninitialised value.

 src/vte.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index e90f560..d984d16 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8206,6 +8206,7 @@ vte_terminal_init(VteTerminal *terminal)
        /* Matching data. */
        pvt->match_regexes = g_array_new(FALSE, TRUE,
                                         sizeof(struct vte_match_regex));
+        pvt->match_tag = -1;
        vte_terminal_match_hilite_clear(terminal);
 
        /* Rendering data */


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