0023350: The null pointer is passed into 'strcmp' function.
[occt.git] / src / TestTopOpe / TestTopOpe_VarsTopo.cxx
index a5f13f3..9f40faf 100755 (executable)
@@ -97,7 +97,7 @@ Standard_Boolean VarsTopo::GetClear() const
 
 void VarsTopo::SetOCT(char* noct)
 {
-  if      (noct != NULL) return;
+  if      (noct == NULL) return;
   else if (!strcmp(noct,"-a")) SetOCT(TopOpeBRepTool_APPROX);
   else if (!strcmp(noct,"-p")) SetOCT(TopOpeBRepTool_BSPLINE1);
   else if (!strcmp(noct,"-i")) SetOCT(TopOpeBRepTool_INTERPOL);