1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 15:44:46 +02:00

Zero errno before calling popen.

This commit is contained in:
Sadie Powell
2024-10-12 17:54:36 +01:00
parent 9a44b74186
commit f908514095
+1
View File
@@ -36,6 +36,7 @@ Mail::Message::~Message()
void Mail::Message::Run()
{
errno = 0;
auto *pipe = popen(sendmail_path.c_str(), "w");
if (!pipe)
{