Fixed bad strdup
authorKrista Bennett <krista@pep-project.org>
Tue, 13 Mar 2018 11:36:41 +0100
changeset 25729aaa4c236d08
parent 2571 817d69de911f
child 2573 eaa8081a98cd
Fixed bad strdup
src/mime.c
     1.1 --- a/src/mime.c	Mon Mar 12 20:25:55 2018 +0100
     1.2 +++ b/src/mime.c	Tue Mar 13 11:36:41 2018 +0100
     1.3 @@ -615,7 +615,7 @@
     1.4      if (msg->comments) {
     1.5          char *comments = NULL;
     1.6          if (!must_field_value_be_encoded(msg->comments))
     1.7 -            comments = strdup(comments);
     1.8 +            comments = strdup(msg->comments);
     1.9          else 
    1.10              comments = mailmime_encode_subject_header("utf-8", msg->comments, 0);
    1.11          if (comments == NULL)