[MPlayer-cvslog] r32631 - trunk/path.c

cboesch subversion at mplayerhq.hu
Wed Nov 17 17:33:48 CET 2010


Author: cboesch
Date: Wed Nov 17 17:33:48 2010
New Revision: 32631

Log:
Fix crash on path without directories.

Regression introduced in r32630. Patch by Yuriy Kaminskiy yumkam at mail ru.

Modified:
   trunk/path.c

Modified: trunk/path.c
==============================================================================
--- trunk/path.c	Tue Nov 16 22:06:52 2010	(r32630)
+++ trunk/path.c	Wed Nov 17 17:33:48 2010	(r32631)
@@ -204,5 +204,5 @@ const char *mp_basename(const char *path
         return s + 1;
 #endif
     s = strrchr(path, '/');
-    return s ? s + 1 : s;
+    return s ? s + 1 : path;
 }


More information about the MPlayer-cvslog mailing list