diff options
author | Sadie Powell <sadie@witchery.services> | 2024-10-12 17:54:36 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-10-12 17:54:36 +0100 |
commit | f908514095d709c72eeee71f8220168318f163a4 (patch) | |
tree | 5a7bc3396a03626dd088165fb6570cf9d8c963a2 /src/mail.cpp | |
parent | 9a44b741869612ba5d729c621a89fcec6c0eb368 (diff) |
Zero errno before calling popen.
Diffstat (limited to 'src/mail.cpp')
-rw-r--r-- | src/mail.cpp | 1 |
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) { |