aboutsummaryrefslogtreecommitdiff
path: root/lib/tran_sock.c
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2020-11-20 04:52:14 -0500
committerThanos <tmakatos@gmail.com>2020-11-20 10:15:32 +0000
commit7e896920be0cfc887f1db533234890cad2f677b3 (patch)
tree1f409ed1baa6429c588836f36522f299fa3469b3 /lib/tran_sock.c
parent012b3aba0addcfa14788494011dea848a3dcdca9 (diff)
downloadlibvfio-user-7e896920be0cfc887f1db533234890cad2f677b3.zip
libvfio-user-7e896920be0cfc887f1db533234890cad2f677b3.tar.gz
libvfio-user-7e896920be0cfc887f1db533234890cad2f677b3.tar.bz2
silence false-positive -Wmaybe-uninitialized warning in GCC 7
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/tran_sock.c')
-rw-r--r--lib/tran_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tran_sock.c b/lib/tran_sock.c
index b505108..9e73493 100644
--- a/lib/tran_sock.c
+++ b/lib/tran_sock.c
@@ -467,7 +467,7 @@ static int
negotiate(lm_ctx_t *lm_ctx, int sock)
{
struct vfio_user_version *client_version = NULL;
- uint16_t msg_id;
+ uint16_t msg_id = 1;
int ret;
ret = recv_version(lm_ctx, sock, &msg_id, &client_version);