diff options
author | Pan Nengyuan <pannengyuan@huawei.com> | 2020-10-23 14:12:18 +0800 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-12-13 23:56:16 +0100 |
commit | cb8d0851f1c00daafd736757a22f4820ec081b68 (patch) | |
tree | 1bab477e6b4ae8c9a8413ef802fbd4312bd0c88d /block/ssh.c | |
parent | 0c4c8671d79023a05d916e73d9b4399abff9c0a0 (diff) | |
download | qemu-cb8d0851f1c00daafd736757a22f4820ec081b68.zip qemu-cb8d0851f1c00daafd736757a22f4820ec081b68.tar.gz qemu-cb8d0851f1c00daafd736757a22f4820ec081b68.tar.bz2 |
block/file-posix: fix a possible undefined behavior
local_err is not initialized to NULL, it will cause a assert error as below:
qemu/util/error.c:59: error_setv: Assertion `*errp == NULL' failed.
Fixes: c6447510690
Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Message-Id: <20201023061218.2080844-8-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'block/ssh.c')
0 files changed, 0 insertions, 0 deletions