[vlc-devel] commit: Fix use of strchr() ( Rémi Denis-Courmont )

Rémi Denis-Courmont remi at remlab.net
Sat Aug 29 12:42:31 CEST 2009


Public service announce:

Le samedi 29 août 2009 13:31:29 git version control, vous avez écrit :
>      char *psz_aspect = var_CreateGetString( p_obj, "v4l2-aspect-ratio" );
> -    if( psz_aspect && *psz_aspect && strchr( psz_aspect, ":" ) )
> +    if( psz_aspect && *psz_aspect && strchr( psz_aspect, ':' ) )
>      {
> -        char psz_delim = strchr( psz_aspect, ":" );
> +        char *psz_delim = strchr( psz_aspect, ':' );
>          p_sys->i_aspect = atoi( psz_aspect ) * VOUT_ASPECT_FACTOR / atoi(
> psz_delim + 1 ); }

Please don't commit VLC code while under the the influence.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list