]> Creatis software - clitk.git/blobdiff - common/clitkCommon.cxx
Replace || by &&
[clitk.git] / common / clitkCommon.cxx
index 3c16d879e7a39c055b26690b4c27676919c5a182..785b0fd2c021ad087dd500a68ba0d03a60481b65 100644 (file)
@@ -41,7 +41,7 @@ void clitk::skipComment(std::istream & is)
     is >> c;
     if (is.eof()) return;
   }
-  if (!(is.fail()) || c != '\n')
+  if (!(is.fail()) && c != '\n')
     is.unget();
 } ////
 //------------------------------------------------------------------