[libdvdnav-devel] Use NULL when comparing pointer

Petri Hintukainen git at videolan.org
Thu Sep 24 13:33:48 CEST 2015


libdvdread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Thu Sep 24 14:01:51 2015 +0300| [32c6f60f29875a7ee05817ee81107bb5ca0ea7ae] | committer: Petri Hintukainen

Use NULL when comparing pointer

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

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

diff --git a/src/dvd_input.c b/src/dvd_input.c
index a5e9b1f..c3d25cc 100644
--- a/src/dvd_input.c
+++ b/src/dvd_input.c
@@ -107,7 +107,7 @@ static dvd_input_t css_open(const char *target,
                     NULL;
 #endif
   }
-  if(dev->dvdcss == 0) {
+  if(dev->dvdcss == NULL) {
     fprintf(stderr, "libdvdread: Could not open %s with libdvdcss.\n", target);
     free(dev);
     return NULL;



More information about the libdvdnav-devel mailing list