SF.net SVN: geany-plugins:[2066] trunk/geany-plugins/treebrowser/src/ treebrowser.c
colombanw at users.sourceforge.net
colombanw at xxxxx
Thu May 12 20:55:46 UTC 2011
Revision: 2066
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2066&view=rev
Author: colombanw
Date: 2011-05-12 20:55:45 +0000 (Thu, 12 May 2011)
Log Message:
-----------
Cleanup path_is_in_dir() a little more
Modified Paths:
--------------
trunk/geany-plugins/treebrowser/src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c
===================================================================
--- trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-05-12 20:55:11 UTC (rev 2065)
+++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-05-12 20:55:45 UTC (rev 2066)
@@ -229,7 +229,6 @@
{
int i = 0;
- gboolean found = FALSE;
gchar *diffed_path = NULL, *tmp = NULL;
gchar **src_segments = NULL, **find_segments = NULL;
guint src_segments_n = 0, find_segments_n = 0, n = 0;
@@ -252,17 +251,13 @@
tmp = g_strconcat(diffed_path == NULL ? "" : diffed_path,
G_DIR_SEPARATOR_S, find_segments[i], NULL);
g_free(diffed_path);
- diffed_path = g_strdup(tmp);
- g_free(tmp);
- found = TRUE;
+ diffed_path = tmp;
}
g_strfreev(src_segments);
g_strfreev(find_segments);
- if (found)
- return diffed_path;
- return NULL;
+ return diffed_path;
}
/* Return: FALSE - if file is filtered and not shown, and TRUE - if file isn`t filtered, and have to be shown */
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