[libbluray-devel] Remove redundant check
Petri Hintukainen
git at videolan.org
Fri Jun 9 12:13:23 CEST 2017
libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Wed Jun 7 22:51:45 2017 +0300| [e535dc884a9a37965be68c153b45450b7f528fbf] | committer: Petri Hintukainen
Remove redundant check
p->fe is never null
> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=e535dc884a9a37965be68c153b45450b7f528fbf
---
src/udfread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/udfread.c b/src/udfread.c
index f222973..08a7721 100644
--- a/src/udfread.c
+++ b/src/udfread.c
@@ -1370,7 +1370,7 @@ UDFFILE *udfread_file_open(udfread *udf, const char *path)
int64_t udfread_file_size(UDFFILE *p)
{
- if (p && p->fe) {
+ if (p) {
return p->fe->length;
}
return -1;
More information about the libbluray-devel
mailing list