]> Creatis software - creaMaracasVisu.git/commitdiff
comparison with string literal results in unspecified behaviour
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 20 Apr 2010 15:56:33 +0000 (15:56 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 20 Apr 2010 15:56:33 +0000 (15:56 +0000)
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp

index 72999cfda745fb9fc6dc06e6981b90903bdc4ce8..0d8d177413b877a6aca37e03af8e396d0f9680c2 100644 (file)
@@ -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