From 4390130df2dedc9e84364d8701377cd589463a20 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 3 Sep 2016 13:10:21 +0200 Subject: [PATCH] fix for empty mime_type --- src/message.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/message.cc b/src/message.cc index 7c65c23..5152a8e 100644 --- a/src/message.cc +++ b/src/message.cc @@ -109,7 +109,8 @@ namespace pEp { string Message::Blob::decode(string encoding) { if (encoding == "") { - if (string(_bl->mime_type) == "application/pEp") + string _mime_type = _bl->mime_type ? _bl->mime_type : ""; + if (_mime_type == "application/pEp") encoding = "pep-sync"; else encoding = "ascii";