summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hw/vmxnet3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vmxnet3.c b/hw/vmxnet3.c
index 925be8084a..bdd256e9d5 100644
--- a/hw/vmxnet3.c
+++ b/hw/vmxnet3.c
@@ -969,7 +969,7 @@ vmxnet3_indicate_packet(VMXNET3State *s)
struct Vmxnet3_RxDesc rxd;
bool is_head = true;
uint32_t rxd_idx;
- uint32_t rx_ridx;
+ uint32_t rx_ridx = 0;
struct Vmxnet3_RxCompDesc rxcd;
uint32_t new_rxcd_gen = VMXNET3_INIT_GEN;