[MPlayer-cvslog] r35945 - trunk/gui/dialog/fileselect.c
ib
subversion at mplayerhq.hu
Sun Mar 10 15:27:22 CET 2013
Author: ib
Date: Sun Mar 10 15:27:22 2013
New Revision: 35945
Log:
Simplify array index handling.
Calculate index by a simple decrementation.
Modified:
trunk/gui/dialog/fileselect.c
Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c Sun Mar 10 15:26:48 2013 (r35944)
+++ trunk/gui/dialog/fileselect.c Sun Mar 10 15:27:22 2013 (r35945)
@@ -398,8 +398,7 @@ static void fs_PersistantHistory( char *
}
if ( i == FF_ARRAY_ELEMS(fsHistory) )
{
- i=FF_ARRAY_ELEMS(fsHistory)-1;
- nfree( fsHistory[i] );
+ nfree( fsHistory[--i] );
entry=strdup( subject );
}
for ( ;i;i-- ) fsHistory[i]=fsHistory[i - 1];
More information about the MPlayer-cvslog
mailing list