[vte] app: Intialise match to NULL



commit 64dd51792fe27c9c25ef0aa0c00cd21cbbda495a
Author: Christian Persch <chpe gnome org>
Date:   Sun Nov 22 21:07:03 2015 +0100

    app: Intialise match to NULL
    
    Checking for regexes can return FALSE without NULLing out the elements
    of @matches, so don't rely on that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758501

 src/vteapp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index 80609a4..f1ecbda 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -150,7 +150,7 @@ button_pressed(GtkWidget *widget, GdkEventButton *event, gpointer data)
        int tag;
        GtkBorder padding;
         gboolean has_extra_match;
-        char *extra_match;
+        char *extra_match = NULL;
 
        switch (event->button) {
        case 3:


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