From de9cb7c635460c989a985f31d15bae5c2725b4be Mon Sep 17 00:00:00 2001 From: jean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr> Date: Tue, 20 Apr 2010 15:56:33 +0000 Subject: [PATCH] comparison with string literal results in unspecified behaviour --- .../wxWindows/widgets/manualContour/manualContourModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp index 72999cf..0d8d177 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp @@ -669,7 +669,8 @@ void manualContourModel::OpenData(FILE *ff) fscanf(ff,"%s",tmp); // Label: fscanf(ff,"%s",tmp); // value std::cout<<tmp<<std::endl; - if(tmp != "NO_LABEL") + //if(strcmp(tmp != "NO_LABEL") // JPR + if(strcmp(tmp,"NO_LABEL" != 0) SetLabel(tmp); fscanf(ff,"%s",tmp); // Real_size -- 2.49.0