anjuta r4569 - in trunk: . plugins/subversion



Author: jrliggett
Date: Sun Jan 11 01:48:42 2009
New Revision: 4569
URL: http://svn.gnome.org/viewvc/anjuta?rev=4569&view=rev

Log:
* plugins/subversion/svn-command.c
(svn_command_make_canonical_path):
svn_command_make_canonical path shouldn't crash if given a NULL path.

Modified:
   trunk/ChangeLog
   trunk/plugins/subversion/svn-command.c

Modified: trunk/plugins/subversion/svn-command.c
==============================================================================
--- trunk/plugins/subversion/svn-command.c	(original)
+++ trunk/plugins/subversion/svn-command.c	Sun Jan 11 01:48:42 2009
@@ -604,7 +604,10 @@
 {
 	const gchar *canonical_path;
 	
-	canonical_path = svn_path_canonicalize (path, self->priv->pool);
+	canonical_path = NULL;
+	
+	if (path)
+		canonical_path = svn_path_canonicalize (path, self->priv->pool);
 	
 	return g_strdup (canonical_path);
 }



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