# HG changeset patch # User ib # Date 1362925554 0 # Node ID 19863172756d0fcc190bf6d242ead159f08e641e # Parent 25af0fce844fd6bf81b0742effe28c623e8c05ee Change return condition in fs_PersistantHistory(). Since it's only called by fsType fsVideoSelector, the condition is pointless. Check subject instead. As a result, strdup() can be used now. diff -r 25af0fce844f -r 19863172756d gui/dialog/fileselect.c --- a/gui/dialog/fileselect.c Sun Mar 10 14:25:02 2013 +0000 +++ b/gui/dialog/fileselect.c Sun Mar 10 14:25:54 2013 +0000 @@ -388,7 +388,7 @@ unsigned int i; char * entry; - if ( fsType != fsVideoSelector ) return; + if ( !subject ) return; for ( i=0;i < FF_ARRAY_ELEMS(fsHistory);i++ ) if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) ) @@ -400,7 +400,7 @@ { i=FF_ARRAY_ELEMS(fsHistory)-1; nfree( fsHistory[i] ); - entry=gstrdup( subject ); + entry=strdup( subject ); } for ( ;i;i-- ) fsHistory[i]=fsHistory[i - 1]; fsHistory[0]=entry;