diff options
-rw-r--r-- | outputchannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/outputchannel.c b/outputchannel.c index a58c767..192b488 100644 --- a/outputchannel.c +++ b/outputchannel.c @@ -26,7 +26,7 @@ struct OutputChannel { OutputChannel* output_channel_alloc(void* opaque, OutputChannelPrintf cb) { - OutputChannel* oc = qemu_mallocz(sizeof(oc)); + OutputChannel* oc = qemu_mallocz(sizeof(*oc)); oc->printf = cb; oc->opaque = opaque; oc->written = 0; |