avutil/file: always set *size to zero if *bufptr is NULL
authorJun Zhao <barryjzhao@tencent.com>
Wed, 28 Aug 2019 16:15:52 +0000 (00:15 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Fri, 30 Aug 2019 01:15:43 +0000 (09:15 +0800)
commit7ce15b1d439400cba1aa09e9ee80aacbd84eb988
tree10730390be2023a1028559140af07de79230f2b5
parent7c0b3ba7ddaa6540560c8b7884697a7487b669e4
avutil/file: always set *size to zero if *bufptr is NULL

Always set *size to zero if *bufptr is NULL, it's more make sence.

fix #8095

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavutil/file.c