summaryrefslogtreecommitdiff
path: root/mail.local/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail.local/main.c')
-rw-r--r--mail.local/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail.local/main.c b/mail.local/main.c
index 464f14d1b..e1c9e6f3f 100644
--- a/mail.local/main.c
+++ b/mail.local/main.c
@@ -292,9 +292,10 @@ make_tmp (const char *from, char **tempfile)
char *buf = NULL;
size_t n = 0;
int line;
-
+
*tempfile = mu_tempname (NULL);
fp = fopen (*tempfile, "w+");
+
if (fp == NULL)
{
mailer_err ("unable to open temporary file");
@@ -309,7 +310,7 @@ make_tmp (const char *from, char **tempfile)
{
if (memcmp (buf, "From ", 5))
{
- struct mu_auth_data *auth;
+ struct mu_auth_data *auth = NULL;
if (!from)
{
auth = mu_get_auth_by_uid (uid);

Return to:

Send suggestions and report system problems to the System administrator.