changeset 32544:9d5d8c799869

Fix crash on path without directories. Regression introduced in r32630. Patch by Yuriy Kaminskiy yumkam at mail ru.
author cboesch
date Wed, 17 Nov 2010 16:33:48 +0000
parents 18338ee51c9d
children 25de211794e8
files path.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/path.c	Tue Nov 16 21:06:52 2010 +0000
+++ b/path.c	Wed Nov 17 16:33:48 2010 +0000
@@ -204,5 +204,5 @@
         return s + 1;
 #endif
     s = strrchr(path, '/');
-    return s ? s + 1 : s;
+    return s ? s + 1 : path;
 }