diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-08-15 00:04:34 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-08-15 00:04:34 +0000 |
commit | c2e1ccd968fc665742f436408089482b350853e8 (patch) | |
tree | 8758bdd6708fd43ccee1d7e7809d68d58f63a0b9 /src/main.c | |
parent | e5df85db158c440048af7d9f34681562cefbf7d2 (diff) | |
download | mpd-c2e1ccd968fc665742f436408089482b350853e8.tar.gz mpd-c2e1ccd968fc665742f436408089482b350853e8.tar.xz mpd-c2e1ccd968fc665742f436408089482b350853e8.zip |
tag.c: fix segfault on failed id3v1 character conversion
convStrDup() returns NULL if character conversion fails,
so make sure we check the return values and drop the
tag if we can't get a conversion.
This should close bug 1313:
http://musicpd.org/mantis/view.php?id=1313
git-svn-id: https://svn.musicpd.org/mpd/trunk@4641 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions