Use nullptr (#950)

Refactoring: use nullptr
This commit is contained in:
Ayaz Salikhov 2017-09-07 11:33:52 +03:00 committed by Daniel Marjamäki
parent f2d56363d3
commit 76dc828e24
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ void ThreadExecutor::writeToPipe(PipeSignal type, const std::string &data)
std::memcpy(&(out[1+sizeof(len)]), data.c_str(), len);
if (write(_wpipe, out, len + 1 + sizeof(len)) <= 0) {
delete [] out;
out = 0;
out = nullptr;
std::cerr << "#### ThreadExecutor::writeToPipe, Failed to write to pipe" << std::endl;
std::exit(0);
}