changeset 35849:4d8a46729aea

Simplify comparison. Use gstrcmp() which can handle NULL.
author ib
date Sun, 10 Mar 2013 14:26:26 +0000
parents 19863172756d
children 95ff5695a70b
files gui/dialog/fileselect.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Sun Mar 10 14:25:54 2013 +0000
+++ b/gui/dialog/fileselect.c	Sun Mar 10 14:26:26 2013 +0000
@@ -391,7 +391,7 @@
  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;