diff --git a/src/mms/iso_mms/common/mms_value.c b/src/mms/iso_mms/common/mms_value.c index 44b58139..4336372f 100644 --- a/src/mms/iso_mms/common/mms_value.c +++ b/src/mms/iso_mms/common/mms_value.c @@ -2007,6 +2007,9 @@ MmsValue_printToBuffer(const MmsValue* self, char* buffer, int bufferSize) return buffer; } + if (bufferSize) + buffer[0] = 0; + switch (MmsValue_getType(self)) { case MMS_STRUCTURE: