[bijiben/wip/gbsneto/webkit2: 3/5] application: initialize variable to NULL



commit f1625f962a3eaf796465056fe553c6271519b79f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Mar 14 11:37:51 2017 -0300

    application: initialize variable to NULL
    
    Before parsing the command-line arguments, we have to initialize
    it to NULL or we may end up with garbage assigned to the var.

 src/bjb-bijiben.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/bjb-bijiben.c b/src/bjb-bijiben.c
index 5ff346f..2ba9c84 100644
--- a/src/bjb-bijiben.c
+++ b/src/bjb-bijiben.c
@@ -353,7 +353,7 @@ bijiben_application_local_command_line (GApplication *application,
 {
   Bijiben *self;
   gboolean version = FALSE;
-  gchar **remaining;
+  gchar **remaining = NULL;
   GOptionContext *context;
   GError *error = NULL;
   gint argc = 0;


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