diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-04 16:06:35 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-04 16:06:35 +0200 |
commit | f9deb99d0787de87cfe36cdab3f0cfd1aea53535 (patch) | |
tree | 83b9ce47e698b62348a26369a0a2429382d4e850 /junklib.c | |
parent | 251bfdb90e02170019366eacf8eb295350a4bdc4 (diff) |
don't append empty id3v2 text frames
Diffstat (limited to 'junklib.c')
-rw-r--r-- | junklib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2545,7 +2545,7 @@ junk_id3v2_read_full (playItem_t *it, DB_id3v2_tag_t *tag_store, DB_FILE *fp) { break; } char *text = convstr_id3v2 (version_major, readptr[0], readptr+1, synched_size-1); - if (text && text_holders[f]) { + if (text && *text && text_holders[f]) { if (*text_holders[f]) { // append char *new = junk_append_meta (*text_holders[f], text); @@ -2647,7 +2647,7 @@ junk_id3v2_read_full (playItem_t *it, DB_id3v2_tag_t *tag_store, DB_FILE *fp) { break; } char *text = convstr_id3v2 (version_major, readptr[0], readptr+1, synched_size-1); - if (text && text_holders[f]) { + if (text && *text && text_holders[f]) { if (*text_holders[f]) { // append char *new = junk_append_meta (*text_holders[f], text); |