summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-10-12 17:54:36 +0100
committerSadie Powell <sadie@witchery.services>2024-10-12 17:54:36 +0100
commitf908514095d709c72eeee71f8220168318f163a4 (patch)
tree5a7bc3396a03626dd088165fb6570cf9d8c963a2 /src
parent9a44b741869612ba5d729c621a89fcec6c0eb368 (diff)
Zero errno before calling popen.
Diffstat (limited to 'src')
-rw-r--r--src/mail.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mail.cpp b/src/mail.cpp
index 172b7a5fe..6b543e85e 100644
--- a/src/mail.cpp
+++ b/src/mail.cpp
@@ -36,6 +36,7 @@ Mail::Message::~Message()
void Mail::Message::Run()
{
+ errno = 0;
auto *pipe = popen(sendmail_path.c_str(), "w");
if (!pipe)
{