From: Pawel Date: Thu, 26 Jul 2012 09:18:42 +0000 (+0200) Subject: 0023350: The null pointer is passed into 'strcmp' function. X-Git-Tag: V6_5_4_beta1~85 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3b4c36f540c1d937e3d3f61ecc45a3ae48bc18e5;p=occt-copy.git 0023350: The null pointer is passed into 'strcmp' function. The method returns if it gets a NULL pointer. --- diff --git a/src/TestTopOpe/TestTopOpe_VarsTopo.cxx b/src/TestTopOpe/TestTopOpe_VarsTopo.cxx index a5f13f3c41..9f40faf94c 100755 --- a/src/TestTopOpe/TestTopOpe_VarsTopo.cxx +++ b/src/TestTopOpe/TestTopOpe_VarsTopo.cxx @@ -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);