[MPlayer-cvslog] r35943 - trunk/gui/dialog/fileselect.c
ib
subversion at mplayerhq.hu
Sun Mar 10 15:26:26 CET 2013
Author: ib
Date: Sun Mar 10 15:26:26 2013
New Revision: 35943
Log:
Simplify comparison.
Use gstrcmp() which can handle NULL.
Modified:
trunk/gui/dialog/fileselect.c
Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c Sun Mar 10 15:25:54 2013 (r35942)
+++ trunk/gui/dialog/fileselect.c Sun Mar 10 15:26:26 2013 (r35943)
@@ -391,7 +391,7 @@ static void fs_PersistantHistory( char *
if ( !subject ) return;
for ( i=0;i < FF_ARRAY_ELEMS(fsHistory);i++ )
- if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) )
+ if ( gstrcmp( fsHistory[i],subject ) == 0 )
{
entry=fsHistory[i];
break;
More information about the MPlayer-cvslog
mailing list