[vlc-devel] commit: One more "Remove useless test before free" ( Rémi Duraffort )
Hannes Domani
ssbssa at yahoo.de
Thu Mar 13 12:19:30 CET 2008
Is it impossible that psz_filter_chain or
p_vout->psz_filter_chain are NULL before getting to
this point?:
> --- a/src/video_output/video_output.c
> +++ b/src/video_output/video_output.c
> @@ -177,12 +177,12 @@ vout_thread_t *__vout_Request(
vlc_object_t *p_this, vout_thread_t *p_vout,
> var_Get( p_vout, "vout-filter", &val );
> psz_filter_chain = val.psz_string;
>
> - if( psz_filter_chain &&
!*psz_filter_chain )
> + if( !*psz_filter_chain )
> {
> free( psz_filter_chain );
> psz_filter_chain = NULL;
> }
> - if( p_vout->psz_filter_chain &&
!*p_vout->psz_filter_chain )
> + if( !*p_vout->psz_filter_chain )
> {
> free( p_vout->psz_filter_chain );
> p_vout->psz_filter_chain = NULL;
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
More information about the vlc-devel
mailing list