diff options
Diffstat (limited to 'block/nfs.c')
-rw-r--r-- | block/nfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/nfs.c b/block/nfs.c index fe46c33709..93d87f3256 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -409,7 +409,7 @@ static int nfs_file_create(const char *url, QemuOpts *opts, Error **errp) { int ret = 0; int64_t total_size = 0; - NFSClient *client = g_malloc0(sizeof(NFSClient)); + NFSClient *client = g_new0(NFSClient, 1); client->aio_context = qemu_get_aio_context(); |