diff options
author | Zhiqiang Liu <liuzhiqiang26@huawei.com> | 2020-11-11 10:00:23 +0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2020-11-11 09:32:56 +0000 |
commit | f604536b08584bd7c979eed438f0c46ddd1871f0 (patch) | |
tree | 99604c57840c4edc5af95c2b88f819f2a32e50e4 /example | |
parent | 71f0d7c366ee2ac2d6158c7c7ea6c3c2240ebc65 (diff) | |
download | libfuse-f604536b08584bd7c979eed438f0c46ddd1871f0.tar.gz |
buffer.c: correct return value when buf is NULL
In commit d614415a ("buffer.c: check whether buf is
NULL in fuse_bufvec_advance func"), if fuse_bufvec_current
func returns NULL, it returns 1 directly. Actually,
we should return 0 when buf is NULL.
Fixes: d614415a ("buffer.c: check whether buf is NULL in fuse_bufvec_advance func")
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Haotian Li <lihaotian9@huawei.com>
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions