diff options
Diffstat (limited to 'audio/wavcapture.c')
-rw-r--r-- | audio/wavcapture.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/audio/wavcapture.c b/audio/wavcapture.c index 9919171e40..6d1c4413b5 100644 --- a/audio/wavcapture.c +++ b/audio/wavcapture.c @@ -120,11 +120,6 @@ int wav_start_capture (CaptureState *s, const char *path, int freq, ops.destroy = wav_destroy; wav = qemu_mallocz (sizeof (*wav)); - if (!wav) { - term_printf ("Could not allocate memory for wav capture (%zu bytes)", - sizeof (*wav)); - return -1; - } shift = bits16 + stereo; hdr[34] = bits16 ? 0x10 : 0x08; |