[libdvdnav-devel] Use NULL instead of 0 for pointers

Jean-Baptiste Kempf git at videolan.org
Wed Apr 9 15:43:31 CEST 2014


libdvdread | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr  9 15:42:30 2014 +0200| [02d9e36e4be243c4c523a5b2b94045ea25c5cfd6] | committer: Jean-Baptiste Kempf

Use NULL instead of 0 for pointers

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=02d9e36e4be243c4c523a5b2b94045ea25c5cfd6
---

 src/dvd_reader.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index 8250ccb..170b911 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -947,7 +947,7 @@ void DVDCloseFile( dvd_file_t *dvd_file )
     }
 
     free( dvd_file );
-    dvd_file = 0;
+    dvd_file = NULL;
   }
 }
 



More information about the libdvdnav-devel mailing list