# HG changeset patch # User cboesch # Date 1290011628 0 # Node ID 9d5d8c799869cd81b34136e76d65667c0ee8286f # Parent 18338ee51c9dfe03b33edb5ec421491bbc7fa6b5 Fix crash on path without directories. Regression introduced in r32630. Patch by Yuriy Kaminskiy yumkam at mail ru. diff -r 18338ee51c9d -r 9d5d8c799869 path.c --- 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; }