From 431454fba94282216575ef5b5a629ce6ccbc14f8 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 19 Nov 2013 16:55:24 +0100 Subject: [PATCH] In ifoRead_PTL_MAIT(), compare ifofile->vmgi_mat->ptl_mait with 0 instead of NULL Fixes clang complaint: [..]/src/ifo_read.c:1307:34: warning: comparison between pointer and integer ('uint32_t' (aka 'unsigned int') and 'void *') if(ifofile->vmgi_mat->ptl_mait == NULL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ --- 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 cdd9369..dd4d477 100644 --- a/src/ifo_read.c +++ b/src/ifo_read.c @@ -1304,7 +1304,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 == 0) return 1; if(!DVDFileSeek_(ifofile->file, ifofile->vmgi_mat->ptl_mait * DVD_BLOCK_LEN)) -- 1.8.4.2