SF.net SVN: geany-plugins:[2014] trunk/geany-plugins/geanyvc/src/vc_bzr.c

frlan at users.sourceforge.net frlan at xxxxx
Sat Apr 9 15:09:22 UTC 2011


Revision: 2014
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2014&view=rev
Author:   frlan
Date:     2011-04-09 15:09:22 +0000 (Sat, 09 Apr 2011)

Log Message:
-----------
GeanyVC: Initialize some variables with NULL to ensure g_free() etc. are not failing

Modified Paths:
--------------
    trunk/geany-plugins/geanyvc/src/vc_bzr.c

Modified: trunk/geany-plugins/geanyvc/src/vc_bzr.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/vc_bzr.c	2011-04-09 15:08:59 UTC (rev 2013)
+++ trunk/geany-plugins/geanyvc/src/vc_bzr.c	2011-04-09 15:09:22 UTC (rev 2014)
@@ -163,7 +163,7 @@
 		FILE_NAME,
 	};
 
-	gchar *txt;
+	gchar *txt = NULL;
 	GSList *ret = NULL;
 	gint pstatus = FIRST_CHAR;
 	const gchar *p;
@@ -172,7 +172,7 @@
 	const gchar *start = NULL;
 	CommitItem *item;
 
-	const gchar *status;
+	const gchar *status = NULL;
 	gchar *filename;
 	const char *argv[] = { "bzr", "status", "--short", NULL };
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list