diff options
| author | Gonglei <arei.gonglei@huawei.com> | 2014-11-20 19:35:01 +0800 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-11-21 10:50:54 +0000 |
| commit | 8db804ac412010fc96397c2d67ee6417eccd9d34 (patch) | |
| tree | 47309844fc975d512dd7045a82bb141247533e11 /hw/intc | |
| parent | 7a8919dc29a9f46dcadd950c2aa1acf74f28974d (diff) | |
| download | focaccia-qemu-8db804ac412010fc96397c2d67ee6417eccd9d34.tar.gz focaccia-qemu-8db804ac412010fc96397c2d67ee6417eccd9d34.zip | |
net/socket: fix Uninitialized scalar variable
If is_connected parameter is false, the saddr variable will no initialize. Coverity report: uninit_use: Using uninitialized value saddr.sin_port. We don't need add saddr information to nc->info_str when is_connected is false. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions