Mercurial > audlegacy
changeset 1039:fa999c7066e2 trunk
[svn] - if taglib_tag == NULL, then return instead of crash
author | nenolod |
---|---|
date | Sat, 13 May 2006 23:28:57 -0700 |
parents | 0211e65a66e8 |
children | f866da587845 |
files | Plugins/Input/mpg123/fileinfo.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/mpg123/fileinfo.c Sat May 13 22:59:15 2006 -0700 +++ b/Plugins/Input/mpg123/fileinfo.c Sat May 13 23:28:57 2006 -0700 @@ -695,6 +695,9 @@ taglib_ap = taglib_file_audioproperties(taglib_file); } else return; + if (!taglib_tag) + return; + /* be sane here, taglib_tag results may be NULL --nenolod */ ptr = taglib_tag_title(taglib_tag);