aboutsummaryrefslogtreecommitdiff
path: root/block-dmg.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-dmg.c')
-rw-r--r--block-dmg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block-dmg.c b/block-dmg.c
index 74454c7c54..df32bfbccb 100644
--- a/block-dmg.c
+++ b/block-dmg.c
@@ -85,7 +85,7 @@ static int dmg_open(BlockDriverState *bs, const char *filename, int flags)
return -errno;
bs->read_only = 1;
s->n_chunks = 0;
- s->offsets = s->lengths = s->sectors = s->sectorcounts = 0;
+ s->offsets = s->lengths = s->sectors = s->sectorcounts = NULL;
/* read offset of info blocks */
if(lseek(s->fd,-0x1d8,SEEK_END)<0) {