Commit eac4ed22 authored by Viliam Mateicka's avatar Viliam Mateicka Committed by Max Kellermann

audiofile: fixed misplaced if

[mk: by definition, tag_new() cannot fail - removed check]
parent 63272d68
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment