aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:25 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:38:25 +0200
commit055f4a41c57e8faf056b76973a30eb094d81cd09 (patch)
tree233a9380ae6da7d91fc48a0441b6dd58471de89c
parent5e1feb8fa3aff372f04b16b7a9d1095839bbc651 (diff)
downloadmpd-055f4a41c57e8faf056b76973a30eb094d81cd09.tar.gz
mpd-055f4a41c57e8faf056b76973a30eb094d81cd09.tar.xz
mpd-055f4a41c57e8faf056b76973a30eb094d81cd09.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.c5
1 files changed, 0 insertions, 5 deletions
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);