audiofile: fixed misplaced if

[mk: by definition, tag_new() cannot fail - removed check]
This commit is contained in:
Viliam Mateicka 2008-11-18 19:54:42 +01:00 committed by Max Kellermann
parent 63272d6888
commit eac4ed2241
1 changed files with 1 additions and 2 deletions

View File

@ -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