]> git.proxmox.com Git - qemu.git/commit - block/qed.c
qed: don't pass NULL to memcpy
authorPavel Borzenkov <pavel.borzenkov@gmail.com>
Tue, 18 Oct 2011 17:17:35 +0000 (21:17 +0400)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 26 Oct 2011 12:36:35 +0000 (13:36 +0100)
commitfeba23b14340965b9dad9251ec9a7a47313fbf69
tree38806b29e669df865755b76ac8a069bf43b01b03
parent8379e46d1fd681b8aa4714382e2cdab05e5d0575
qed: don't pass NULL to memcpy

Spotted by Clang Analyzer

[Note this memcpy call has always been safe because the length will be 0
when the pointer is NULL]

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qed.c