[libbluray-devel] Check for NULL path

npzacs git at videolan.org
Sun Jul 3 12:48:43 CEST 2016


libbluray | branch: master | npzacs <npzacs at gmail.com> | Sun Jul  3 13:46:15 2016 +0300| [8040069b61e1664049986e858d78acee8fb0f9b4] | committer: npzacs

Check for NULL path

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=8040069b61e1664049986e858d78acee8fb0f9b4
---

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

diff --git a/src/libbluray/disc/bdplus.c b/src/libbluray/disc/bdplus.c
index 44fee89..1ec3bc2 100644
--- a/src/libbluray/disc/bdplus.c
+++ b/src/libbluray/disc/bdplus.c
@@ -208,7 +208,7 @@ int libbdplus_init(BD_BDPLUS *p, const char *root,
     if (set_fopen) {
         p->bdplus = bdplus_init(NULL, NULL, vid);
         set_fopen(p->bdplus, file_open_handle, file_open_fp);
-    } else {
+    } else if (root) {
         p->bdplus = bdplus_init(root, NULL, vid);
     }
 



More information about the libbluray-devel mailing list