Fix build with hardened compiler flags
[claws.git] / src / compose.c
index 72c3fd4a79222044b39a2ee2919fc918ec220628..4a6b5c0d4820b1c90f42429fe5f988cddf26322c 100644 (file)
@@ -5777,10 +5777,8 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
                        if (!privacy_encrypt(compose->privacy_system, mimemsg, compose->encdata)) {
                                debug_print("Couldn't encrypt mime structure: %s.\n",
                                                privacy_get_error());
-                               msg = g_strdup_printf("Couldn't encrypt the email: %s",
+                               alertpanel_error(_("Couldn't encrypt the email: %s"),
                                                privacy_get_error());
-                               alertpanel_error(msg);
-                               g_free(msg);
                        }
                }
        }
@@ -10064,7 +10062,7 @@ warn_err:
                compose_close(compose);
                return TRUE;
        } else {
-               struct stat s;
+               GStatBuf s;
                gchar *path;
 
                path = folder_item_fetch_msg(draft, msgnum);