From 3787544e1dce9470629780aead44c97714b3ea35 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2008 09:38:25 +0200 Subject: wavpack: tag_new() cannot fail Since tag_new() uses xmalloc(), it cannot fail - if we're really out of memory, the process will abort. --- src/inputPlugins/wavpack_plugin.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/inputPlugins') 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); -- cgit v1.2.3