[libdvdnav-devel] Return NULL instead of 0 for methods returning a pointer
Jean-Baptiste Kempf
git at videolan.org
Thu Jan 9 12:08:33 CET 2014
libdvdread | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 9 11:32:24 2014 +0100| [c8fb7d7308477e27592d602b9237366140e7c015] | committer: Jean-Baptiste Kempf
Return NULL instead of 0 for methods returning a pointer
> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=c8fb7d7308477e27592d602b9237366140e7c015
---
src/dvd_reader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index 30364db..b941109 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -276,7 +276,7 @@ static dvd_reader_t *DVDOpenPath( const char *path_root )
dvd->path_root = strdup( path_root );
if(!dvd->path_root) {
free(dvd);
- return 0;
+ return NULL;
}
dvd->udfcache_level = DEFAULT_UDF_CACHE_LEVEL;
dvd->udfcache = NULL;
@@ -909,7 +909,7 @@ dvd_file_t *DVDOpenFile( dvd_reader_t *dvd, int titlenum,
}
break;
case DVD_READ_TITLE_VOBS:
- if( titlenum == 0 ) return 0;
+ if( titlenum == 0 ) return NULL;
if( dvd->isImageFile ) {
return DVDOpenVOBUDF( dvd, titlenum, 0 );
} else {
More information about the libdvdnav-devel
mailing list