#560: XmpParser::encode(): Clear xmpPacket if xmpData is empty.
This commit is contained in:
parent
45df09c67e
commit
99489c2d50
@ -576,7 +576,10 @@ namespace Exiv2 {
|
||||
uint16_t formatFlags,
|
||||
uint32_t padding)
|
||||
{ try {
|
||||
if (xmpData.empty()) return 0;
|
||||
if (xmpData.empty()) {
|
||||
xmpPacket.clear();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!initialize()) {
|
||||
#ifndef SUPPRESS_WARNINGS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user