ENGINE-402: flipped boolean ENGINE-402
authorKrista Bennett <krista@pep-project.org>
Thu, 22 Mar 2018 23:41:21 +0100
branchENGINE-402
changeset 258044c030927c7e
parent 2579 cc878b3193a6
child 2581 752b9b14e0bc
ENGINE-402: flipped boolean
src/mime.c
     1.1 --- a/src/mime.c	Thu Mar 22 23:32:01 2018 +0100
     1.2 +++ b/src/mime.c	Thu Mar 22 23:41:21 2018 +0100
     1.3 @@ -138,10 +138,10 @@
     1.4      pEp_rid_list_t* resource = parse_uri(blob->filename);
     1.5  //    bool already_ascii = known_ascii_type(mime_type);
     1.6  
     1.7 -    bool already_ascii = must_chunk_be_encoded(blob->value, blob->size);
     1.8 +    bool already_ascii = !(must_chunk_be_encoded(blob->value, blob->size));
     1.9  
    1.10      mime = get_file_part(resource, mime_type, blob->value, blob->size, 
    1.11 -                         (already_ascii ? false : transport_encode));
    1.12 +                          (already_ascii ? false : transport_encode));
    1.13      free_rid_list(resource);
    1.14      
    1.15      assert(mime);