wavpack: tag_new() cannot fail
Since tag_new() uses xmalloc(), it cannot fail - if we're really out of memory, the process will abort.
This commit is contained in:
parent
5e1feb8fa3
commit
055f4a41c5
@ -297,11 +297,6 @@ static struct tag *wavpack_tagdup(char *fname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
tag = tag_new();
|
tag = tag_new();
|
||||||
if (tag == NULL) {
|
|
||||||
ERROR("failed to tag_new()\n");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
tag->time =
|
tag->time =
|
||||||
(float)WavpackGetNumSamples(wpc) / WavpackGetSampleRate(wpc);
|
(float)WavpackGetNumSamples(wpc) / WavpackGetSampleRate(wpc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user