1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 10:39:27 +02:00

return empty strings correctly encoded RFC-2231

This commit is contained in:
B. Petersen 2018-05-29 01:25:56 +02:00
parent 7cf582a41e
commit a7cf9baf07

View file

@ -489,7 +489,7 @@ char* mr_encode_ext_header(const char* to_encode)
const char *pstr = to_encode;
if( to_encode == NULL ) {
return safe_strdup("");
return safe_strdup(PREFIX);
}
char *buf = malloc(strlen(PREFIX) + strlen(to_encode) * 3 + 1);