diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:25 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-02 00:13:23 -0700 |
commit | 3787544e1dce9470629780aead44c97714b3ea35 (patch) | |
tree | 72956125527f192af0562defc7133b0385df432b | |
parent | dc5e7c97a337025ef7c51f3191548188b56f5162 (diff) | |
download | mpd-3787544e1dce9470629780aead44c97714b3ea35.tar.gz mpd-3787544e1dce9470629780aead44c97714b3ea35.tar.xz mpd-3787544e1dce9470629780aead44c97714b3ea35.zip |
wavpack: tag_new() cannot fail
Since tag_new() uses xmalloc(), it cannot fail - if we're really out
of memory, the process will abort.
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugins/wavpack_plugin.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c index c8b4ac339..77339dabd 100644 --- a/src/inputPlugins/wavpack_plugin.c +++ b/src/inputPlugins/wavpack_plugin.c @@ -286,11 +286,6 @@ static struct mpd_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); |