]> Creatis software - clitk.git/commitdiff
Replace || by &&
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 20 May 2011 13:43:23 +0000 (15:43 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 20 May 2011 13:43:23 +0000 (15:43 +0200)
- I commited my last patch a bit too fast.

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();
 } ////
 //------------------------------------------------------------------