[MPlayer-cvslog] r35479 - trunk/gui/ui/main.c

ib subversion at mplayerhq.hu
Sun Nov 25 16:13:19 CET 2012


Author: ib
Date: Sun Nov 25 16:13:19 2012
New Revision: 35479

Log:
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.)

Modified:
   trunk/gui/ui/main.c

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Sun Nov 25 16:04:44 2012	(r35478)
+++ trunk/gui/ui/main.c	Sun Nov 25 16:13:19 2012	(r35479)
@@ -660,8 +660,9 @@ void uiDandDHandler(int num,char** files
 	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 {


More information about the MPlayer-cvslog mailing list