[libbluray-devel] Avoid confusing static analyzers
hpi1
git at videolan.org
Mon Jan 25 12:49:58 CET 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan 25 13:47:01 2016 +0200| [f82ef2f2280ebfaecc85040f97e33fb311f5e0db] | committer: hpi1
Avoid confusing static analyzers
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f82ef2f2280ebfaecc85040f97e33fb311f5e0db
---
src/libbluray/disc/disc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbluray/disc/disc.c b/src/libbluray/disc/disc.c
index 8f275b8..0880fa9 100644
--- a/src/libbluray/disc/disc.c
+++ b/src/libbluray/disc/disc.c
@@ -177,7 +177,7 @@ static void _comb_dir_append(BD_DIR_H *dp, BD_DIRENT *entry)
}
/* append */
- priv = realloc(priv, sizeof(*priv) + priv->count * sizeof(BD_DIRENT));
+ priv = realloc(dp->internal, sizeof(*priv) + priv->count * sizeof(BD_DIRENT));
if (!priv) {
return;
}
More information about the libbluray-devel
mailing list