[vlc-devel] [PATCH] access/satip: removal of unnecessary if

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Jul 18 18:00:38 CEST 2016


On 07/18/2016 05:52 PM, Filip Roséen wrote:
> ---
>  modules/access/satip.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/modules/access/satip.c b/modules/access/satip.c
> index 6596fa4..6daf683 100644
> --- a/modules/access/satip.c
> +++ b/modules/access/satip.c
> @@ -747,8 +747,7 @@ static int satip_open(access_t *access) {
>      return VLC_SUCCESS;
>
>  error:
> -    if (psz_lower_url)
> -        free(psz_lower_url);
> +    free(psz_lower_url);
>
>      vlc_UrlClean(&url);
>      satip_close(access);
>
Ah, good point I initially wanted to add that in a separate commit :)
Will apply in the next minutes


More information about the vlc-devel mailing list