aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViliam Mateicka <the.metyl@gmail.com>2008-11-18 19:54:42 +0100
committerMax Kellermann <max@duempel.org>2008-11-18 19:54:42 +0100
commiteac4ed2241f11eb9cde051a7c6a1c193c96f9a89 (patch)
tree4e814b511682f1e3174e3576861b0108486ca35b
parent63272d6888c4f63db8227b857361cd5cda22a0c3 (diff)
downloadmpd-eac4ed2241f11eb9cde051a7c6a1c193c96f9a89.tar.gz
mpd-eac4ed2241f11eb9cde051a7c6a1c193c96f9a89.tar.xz
mpd-eac4ed2241f11eb9cde051a7c6a1c193c96f9a89.zip
audiofile: fixed misplaced if
[mk: by definition, tag_new() cannot fail - removed check]
-rw-r--r--src/decoder/audiofile_plugin.c3
1 files changed, 1 insertions, 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