[totem-pl-parser] tests: Avoid crasher with no arguments passed



commit 235ad19dbfee68174e2e17b56386f95a6eb6aa46
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 1 16:50:17 2012 +0000

    tests: Avoid crasher with no arguments passed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662418

 plparse/tests/disc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plparse/tests/disc.c b/plparse/tests/disc.c
index 7541c08..afa390b 100644
--- a/plparse/tests/disc.c
+++ b/plparse/tests/disc.c
@@ -99,7 +99,7 @@ main (int argc, char *argv[])
 {
 	GError *error = NULL;
 	GOptionContext *context;
-	gchar **device_paths;
+	gchar **device_paths = NULL;
 	guint i = 0;
 	const GOptionEntry entries[] = {
 		{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &device_paths, "[Device paths...]", NULL },



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