Fixed bad variable initialisation
authorKrista Bennett <krista@pep-project.org>
Tue, 09 May 2017 15:50:21 +0200
changeset 17724a6cee288e58
parent 1770 9d19fa238f63
child 1773 362524f3e270
Fixed bad variable initialisation
src/message_api.c
     1.1 --- a/src/message_api.c	Tue May 09 14:13:23 2017 +0200
     1.2 +++ b/src/message_api.c	Tue May 09 15:50:21 2017 +0200
     1.3 @@ -2494,6 +2494,7 @@
     1.4      PEP_STATUS status = PEP_STATUS_OK;
     1.5      message* tmp_msg = NULL;
     1.6      message* dec_msg = NULL;
     1.7 +    bool dec_empty = true;
     1.8  
     1.9      status = mime_decode_message(mimetext, size, &tmp_msg);
    1.10      if (status != PEP_STATUS_OK)
    1.11 @@ -2506,7 +2507,8 @@
    1.12                                                  rating,
    1.13                                                  flags);
    1.14                                                  
    1.15 -    bool dec_empty = (dec_msg == NULL);
    1.16 +
    1.17 +    dec_empty = (dec_msg == NULL);
    1.18  
    1.19      if (dec_empty) {
    1.20          dec_msg = tmp_msg;