From 055f4a41c57e8faf056b76973a30eb094d81cd09 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') diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c index 2bcafbbb9..0b3b52472 100644 --- a/src/inputPlugins/wavpack_plugin.c +++ b/src/inputPlugins/wavpack_plugin.c @@ -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); -- cgit v1.2.3