From eac4ed2241f11eb9cde051a7c6a1c193c96f9a89 Mon Sep 17 00:00:00 2001 From: Viliam Mateicka Date: Tue, 18 Nov 2008 19:54:42 +0100 Subject: [PATCH] audiofile: fixed misplaced if [mk: by definition, tag_new() cannot fail - removed check] --- src/decoder/audiofile_plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/decoder/audiofile_plugin.c b/src/decoder/audiofile_plugin.c index 7fd5d2320..40f5c31f0 100644 --- a/src/decoder/audiofile_plugin.c +++ b/src/decoder/audiofile_plugin.c @@ -120,8 +120,7 @@ static struct tag *audiofileTagDup(const char *file) int total_time = getAudiofileTotalTime(file); if (total_time >= 0) { - if (!ret) - ret = tag_new(); + ret = tag_new(); ret->time = total_time; } else { DEBUG