mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix wrong test: boolean variable is never negative
This has been spotted by clang++.
This commit is contained in:
parent
4436678c97
commit
c559f85ccb
@ -878,7 +878,7 @@ void LyXComm::endPipe(int & fd, string const & filename, bool write)
|
||||
<< '\n' << strerror(errno) << endl;
|
||||
}
|
||||
|
||||
if (FileName(filename).removeFile() < 0) {
|
||||
if (!FileName(filename).removeFile()) {
|
||||
lyxerr << "LyXComm: Could not remove pipe " << filename
|
||||
<< '\n' << strerror(errno) << endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user