Commit 055f4a41 authored by Max Kellermann's avatar Max Kellermann

wavpack: tag_new() cannot fail

Since tag_new() uses xmalloc(), it cannot fail - if we're really out of memory, the process will abort.
parent 5e1feb8f
......@@ -297,11 +297,6 @@ static struct tag *wavpack_tagdup(char *fname)
}
tag = tag_new();
if (tag == NULL) {
ERROR("failed to tag_new()\n");
return NULL;
}
tag->time =
(float)WavpackGetNumSamples(wpc) / WavpackGetSampleRate(wpc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment