aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--block/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/stream.c b/block/stream.c
index 608a860aa2..8e5832273b 100644
--- a/block/stream.c
+++ b/block/stream.c
@@ -166,7 +166,7 @@ static void coroutine_fn stream_run(void *opaque)
BlockDriverState *base = s->base;
int64_t sector_num, end;
int ret = 0;
- int n;
+ int n = 0;
void *buf;
s->common.len = bdrv_getlength(bs);