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

frlan at users.sourceforge.net frlan at xxxxx
Sun Apr 3 01:18:32 UTC 2011


Revision: 2010
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2010&view=rev
Author:   frlan
Date:     2011-04-03 01:18:28 +0000 (Sun, 03 Apr 2011)

Log Message:
-----------
GeanyVC: Initialize variable with NULL to avoid possible issues in case of dir could not be set correctly.

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

Modified: trunk/geany-plugins/geanyvc/src/geanyvc.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/geanyvc.c	2011-03-30 22:03:34 UTC (rev 2009)
+++ trunk/geany-plugins/geanyvc/src/geanyvc.c	2011-04-03 01:18:28 UTC (rev 2010)
@@ -514,7 +514,7 @@
 execute_command(const VC_RECORD * vc, gchar ** std_out, gchar ** std_err, const gchar * filename,
 		gint cmd, GSList * list, const gchar * message)
 {
-	gchar *dir;
+	gchar *dir = NULL;
 	gint ret;
 
 	if (std_out)


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