Message ID | 1381145289-6591-9-git-send-email-stefanha@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block.c b/block.c index e2d9936..d7ca37e 100644 --- a/block.c +++ b/block.c @@ -824,8 +824,8 @@ static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file, #ifndef _WIN32 if (bs->is_temporary) { - assert(filename != NULL); - unlink(filename); + assert(bs->filename[0] != '\0'); + unlink(bs->filename); } #endif return 0;