[libdvdnav-devel] [PATCH 2/2] ifo_read: Do not compare integer variable against NULL
Diego Biurrun
diego at biurrun.de
Mon Dec 2 04:48:10 CET 2013
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
More information about the libdvdnav-devel
mailing list