21 lines
719 B
Diff
21 lines
719 B
Diff
diff -up mutt-1.10.1/attach.c.mutt-1.9.3-1_coverity_17 mutt-1.10.1/attach.c
|
|
--- mutt-1.10.1/attach.c.mutt-1.9.3-1_coverity_17 2018-10-25 14:32:25.267823534 +0200
|
|
+++ mutt-1.10.1/attach.c 2018-10-25 14:33:07.644435674 +0200
|
|
@@ -47,13 +47,15 @@ int mutt_get_tmp_attachment (BODY *a)
|
|
{
|
|
char type[STRING];
|
|
char tempfile[_POSIX_PATH_MAX];
|
|
- rfc1524_entry *entry = rfc1524_new_entry();
|
|
+ rfc1524_entry *entry = NULL;
|
|
FILE *fpin = NULL, *fpout = NULL;
|
|
struct stat st;
|
|
|
|
if(a->unlink)
|
|
return 0;
|
|
|
|
+ entry = rfc1524_new_entry();
|
|
+
|
|
snprintf(type, sizeof(type), "%s/%s", TYPE(a), a->subtype);
|
|
rfc1524_mailcap_lookup(a, type, entry, 0);
|
|
rfc1524_expand_filename(entry->nametemplate, a->filename,
|