[Xfce4-commits] r23231 - xarchiver/branches/xarchiver-psybsd/src
Stephan Arts
stephan at xfce.org
Thu Sep 28 13:37:01 UTC 2006
Author: stephan
Date: 2006-09-28 13:37:01 +0000 (Thu, 28 Sep 2006)
New Revision: 23231
Modified:
xarchiver/branches/xarchiver-psybsd/src/main_window.c
Log:
oops
Modified: xarchiver/branches/xarchiver-psybsd/src/main_window.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-28 13:07:33 UTC (rev 23230)
+++ xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-28 13:37:01 UTC (rev 23231)
@@ -905,18 +905,17 @@
xa_main_window_get_working_dir(XAMainWindow *window)
{
gchar *temp = ((LXAEntry *)window->working_node->data)->filename;
- gchar *path = NULL, *_temp = NULL;
+ gchar *path = g_strdup(temp), *_temp = NULL;
GSList *_path = window->working_node->next;
while(_path)
{
- _temp = path;
- if(temp)
- path = g_strconcat(((LXAEntry *)_path->data)->filename, "/", temp, NULL);
- else
+ if((((LXAEntry *)_path->data)->filename[0] != '/'))
+ {
+ _temp = path;
path = g_strconcat(((LXAEntry *)_path->data)->filename, "/", _temp,NULL);
-
- g_free(_temp);
+ g_free(_temp);
+ }
_path = _path->next;
}
- return temp;
+ return path;
}
More information about the Xfce4-commits
mailing list