mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0023350: The null pointer is passed into 'strcmp' function.
The method returns if it gets a NULL pointer.
This commit is contained in:
parent
aceabd1b53
commit
3b4c36f540
@ -97,7 +97,7 @@ Standard_Boolean VarsTopo::GetClear() const
|
|||||||
|
|
||||||
void VarsTopo::SetOCT(char* noct)
|
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,"-a")) SetOCT(TopOpeBRepTool_APPROX);
|
||||||
else if (!strcmp(noct,"-p")) SetOCT(TopOpeBRepTool_BSPLINE1);
|
else if (!strcmp(noct,"-p")) SetOCT(TopOpeBRepTool_BSPLINE1);
|
||||||
else if (!strcmp(noct,"-i")) SetOCT(TopOpeBRepTool_INTERPOL);
|
else if (!strcmp(noct,"-i")) SetOCT(TopOpeBRepTool_INTERPOL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user