X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.cxx;h=785b0fd2c021ad087dd500a68ba0d03a60481b65;hb=b3ebccec24c23e77b6bade48e26af109aadabdc7;hp=3c16d879e7a39c055b26690b4c27676919c5a182;hpb=dfde44dc499b7c5f6f7a7613b74676283e0d53f2;p=clitk.git diff --git a/common/clitkCommon.cxx b/common/clitkCommon.cxx index 3c16d87..785b0fd 100644 --- a/common/clitkCommon.cxx +++ b/common/clitkCommon.cxx @@ -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(); } //// //------------------------------------------------------------------