mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Zero errno before calling popen.
This commit is contained in:
@@ -36,6 +36,7 @@ Mail::Message::~Message()
|
||||
|
||||
void Mail::Message::Run()
|
||||
{
|
||||
errno = 0;
|
||||
auto *pipe = popen(sendmail_path.c_str(), "w");
|
||||
if (!pipe)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user