[libbluray-devel] Address of stack-allocated array can't be NULL

hpi1 git at videolan.org
Fri Aug 22 11:15:05 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Aug 22 12:05:36 2014 +0300| [ab997a464137dbc46190901a97a92130e7f6cbf6] | committer: hpi1

Address of stack-allocated array can't be NULL

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

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

diff --git a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
index b36ccc9..3cd9abd 100644
--- a/src/libbluray/bdnav/meta_parse.c
+++ b/src/libbluray/bdnav/meta_parse.c
@@ -121,7 +121,7 @@ static void _findMetaXMLfiles(META_ROOT *meta, const char *device_path)
     for (res = dir_read(dir, &ent); !res; res = dir_read(dir, &ent)) {
         if (ent.d_name[0] == '.')
             continue;
-        else if (ent.d_name != NULL && strncasecmp(ent.d_name, "bdmt_", 5) == 0) {
+        else if (strncasecmp(ent.d_name, "bdmt_", 5) == 0) {
             uint8_t i = meta->dl_count;
             meta->dl_count++;
             meta->dl_entries = realloc(meta->dl_entries, (meta->dl_count*sizeof(META_DL)));



More information about the libbluray-devel mailing list