[libdvdnav-devel] ifo_read: Do not compare integer variable against NULL
Diego Biurrun
git at videolan.org
Thu Jan 2 20:12:23 CET 2014
libdvdread | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Dec 1 22:46:39 2013 -0500| [22a6253aed121c4c54613ca8293c9e6f2ca18c16] | committer: Diego Biurrun
ifo_read: Do not compare integer variable against NULL
src/ifo_read.c:1303:34: warning: comparison between pointer and integer [enabled by default]
> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=22a6253aed121c4c54613ca8293c9e6f2ca18c16
---
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 b9c88ef..71ff01d 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -1310,7 +1310,7 @@ int ifoRead_PTL_MAIT(ifo_handle_t *ifofile) {
if(!ifofile->vmgi_mat)
return 0;
- if(ifofile->vmgi_mat->ptl_mait == 0)
+ if(!ifofile->vmgi_mat->ptl_mait)
return 1;
if(!DVDFileSeek_(ifofile->file, ifofile->vmgi_mat->ptl_mait * DVD_BLOCK_LEN))
More information about the libdvdnav-devel
mailing list