Mercurial > mplayer.hg
changeset 35848:19863172756d
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.
author | ib |
---|---|
date | Sun, 10 Mar 2013 14:25:54 +0000 |
parents | 25af0fce844f |
children | 4d8a46729aea |
files | gui/dialog/fileselect.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;