Skip to content
Snippets Groups Projects
Commit 0221f7f0 authored by Frediano Ziglio's avatar Frediano Ziglio
Browse files

virtio-port: Avoid temporary buffers


Modify directly the new_wbuf->buf buffer instead of writing into
a temporary buffer and then copy in the final one.
This also fixes Coverity warning:

 | uninit_use_in_call: Using uninitialized value "message_header". Field
 | "message_header.data" is uninitialized when calling "memcpy".

Signed-off-by: default avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: default avatarJonathon Jongsma <jjongsma@redhat.com>
parent 7ace167e
No related branches found
Tags v0.6.1
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment