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