Mercurial > mplayer.hg
comparison path.c @ 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 |
comparison
equal
deleted
inserted
replaced
32543:18338ee51c9d | 32544:9d5d8c799869 |
---|---|
202 s = strrchr(path, '\\'); | 202 s = strrchr(path, '\\'); |
203 if (s) | 203 if (s) |
204 return s + 1; | 204 return s + 1; |
205 #endif | 205 #endif |
206 s = strrchr(path, '/'); | 206 s = strrchr(path, '/'); |
207 return s ? s + 1 : s; | 207 return s ? s + 1 : path; |
208 } | 208 } |