Browse Source

dtoolutil: Fix typo in pfstream causing compiler warning

rdb 1 year ago
parent
commit
78ace53dbe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/dtoolutil/pfstreamBuf.cxx

+ 1 - 1
dtool/src/dtoolutil/pfstreamBuf.cxx

@@ -183,7 +183,7 @@ is_open() const {
  */
 bool PipeStreamBuf::
 eof_pipe() const {
-  return (_pipe == nullptr) && feof(_pipe);
+  return (_pipe == nullptr) || feof(_pipe);
 }
 
 /**