better the other way around
authorVolker Birk <vb@pep-project.org>
Thu, 12 May 2016 01:05:47 +0200
changeset 8229ea9f52055d
parent 81 73bb211934ab
child 83 9b7371990473
better the other way around
CpEpEngine.cpp
pEp_utility.cpp
     1.1 --- a/CpEpEngine.cpp	Thu May 12 01:01:24 2016 +0200
     1.2 +++ b/CpEpEngine.cpp	Thu May 12 01:05:47 2016 +0200
     1.3 @@ -972,6 +972,8 @@
     1.4          return PEP_ILLEGAL_VALUE;
     1.5  
     1.6      text_message _msg;
     1.7 +    memset(&_msg, 0, sizeof(text_message));
     1.8 +
     1.9      text_message_from_C(&_msg, msg);
    1.10      CpEpEngine *me = (CpEpEngine *) obj;
    1.11      HRESULT r = me->Fire_MessageToSend(&_msg);
     2.1 --- a/pEp_utility.cpp	Thu May 12 01:01:24 2016 +0200
     2.2 +++ b/pEp_utility.cpp	Thu May 12 01:05:47 2016 +0200
     2.3 @@ -289,7 +289,7 @@
     2.4              assert(msg2);
     2.5              assert(msg);
     2.6  
     2.7 -            memset(msg2, 0, sizeof(text_message));
     2.8 +            clear_text_message(msg2);
     2.9  
    2.10              msg2->dir = (pEp_msg_direction) msg->dir;
    2.11              msg2->id = bstr(msg->id);