[libdvdnav-devel] [PATCH 2/2] ifo_read: Do not compare integer variable against NULL
Jean-Baptiste Kempf
jb at videolan.org
Sun Dec 29 16:38:47 CET 2013
Please apply.
On 01 Dec, Diego Biurrun wrote :
> src/ifo_read.c:1303:34: warning: comparison between pointer and integer [enabled by default]
> ---
> src/ifo_read.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/ifo_read.c b/src/ifo_read.c
> index 4c11dfb..8bf6472 100644
> --- a/src/ifo_read.c
> +++ b/src/ifo_read.c
> @@ -1300,7 +1300,7 @@ int ifoRead_PTL_MAIT(ifo_handle_t *ifofile) {
> if(!ifofile->vmgi_mat)
> return 0;
>
> - if(ifofile->vmgi_mat->ptl_mait == NULL)
> + if(!ifofile->vmgi_mat->ptl_mait)
> return 1;
>
> if(!DVDFileSeek_(ifofile->file, ifofile->vmgi_mat->ptl_mait * DVD_BLOCK_LEN))
> --
> 1.8.3.2
>
> _______________________________________________
> libdvdnav-devel mailing list
> libdvdnav-devel at videolan.org
> https://mailman.videolan.org/listinfo/libdvdnav-devel
--
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the libdvdnav-devel
mailing list