diff --git a/taglib/ogg/xiphcomment.cpp b/taglib/ogg/xiphcomment.cpp index 8986943e..6762f9d8 100644 --- a/taglib/ogg/xiphcomment.cpp +++ b/taglib/ogg/xiphcomment.cpp @@ -188,7 +188,7 @@ void Ogg::XiphComment::addField(const String &key, const String &value, bool rep if(replace) removeField(key.upper()); - if(!key.isEmpty()) + if(!key.isEmpty() && !value.isEmpty()) d->fieldListMap[key.upper()].append(value); }