diff --git a/nbd/client.c b/nbd/client.c index 3523c863fe..232ff4f46d 100644 --- a/nbd/client.c +++ b/nbd/client.c @@ -619,8 +619,8 @@ static int nbd_negotiate_simple_meta_context(QIOChannel *ioc, { int ret; NBDOptionReply reply; - uint32_t received_id; - bool received; + uint32_t received_id = 0; + bool received = false; uint32_t export_len = strlen(export); uint32_t context_len = strlen(context); uint32_t data_len = sizeof(export_len) + export_len +