Fix build with hardened compiler flags
[claws.git] / src / compose.c
index 149eae99a10d0880036e05f552ea57de10995054..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);
                        }
                }
        }