support uninitialized data
authorVolker Birk <vb@pep-project.org>
Thu, 12 May 2016 01:01:24 +0200
changeset 8173bb211934ab
parent 80 3862a304c0a9
child 82 29ea9f52055d
support uninitialized data
pEp_utility.cpp
     1.1 --- a/pEp_utility.cpp	Thu May 12 00:26:42 2016 +0200
     1.2 +++ b/pEp_utility.cpp	Thu May 12 01:01:24 2016 +0200
     1.3 @@ -289,7 +289,7 @@
     1.4              assert(msg2);
     1.5              assert(msg);
     1.6  
     1.7 -            clear_text_message(msg2);
     1.8 +            memset(msg2, 0, sizeof(text_message));
     1.9  
    1.10              msg2->dir = (pEp_msg_direction) msg->dir;
    1.11              msg2->id = bstr(msg->id);