changeset 35385:8b8534de8b83

A non-existing path shouldn't be an empty string. This this is not supposed to happen anyway. (Add a note for later checking and fixing.)
author ib
date Sun, 25 Nov 2012 15:13:19 +0000
parents 9c7bba653bfb
children ef2d3b306d6e
files gui/ui/main.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/main.c	Sun Nov 25 15:04:44 2012 +0000
+++ b/gui/ui/main.c	Sun Nov 25 15:13:19 2012 +0000
@@ -660,8 +660,9 @@
 	item->name = gstrdup( s );
 	item->path = gstrdup( str );
       } else {
+	// NOTE TO MYSELF: this shouldn't happen, make sure we have a full path
 	item->name = strdup(str);
-	item->path = strdup("");
+	item->path = strdup(".");
       }
       listMgr(PLAYLIST_ITEM_APPEND,item);
     } else {