1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 19:22:11 +00:00

small gcc warning fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13182 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rathann 2004-08-28 20:20:40 +00:00
parent ebd110a197
commit 450854c020

View File

@ -47,7 +47,7 @@ inline void TranslateFilename( int c,char * tmp,size_t tmplen )
case STREAMTYPE_FILE:
if ( ( guiIntfStruct.Filename )&&( guiIntfStruct.Filename[0] ) )
{
if ( p = strrchr(guiIntfStruct.Filename, '/') )
if ( (p = strrchr(guiIntfStruct.Filename, '/')) )
strlcpy(tmp, p + 1, tmplen);
else
strlcpy(tmp, guiIntfStruct.Filename, tmplen);