Fix possible NULL deref in NTNDArray::getValueSize()
This commit is contained in:
1 parent
7a2d264f2c
commit
453c267c9b
1 file changed
+1
-3
+1
-3
@@ -327,10 +327,8 @@ int64 NTNDArray::getValueSize()
|
||||
{
|
||||
int64 size = 0;
|
||||
PVScalarArrayPtr storedValue = getValue()->get<PVScalarArray>();
|
||||
if (!storedValue.get())
|
||||
{
|
||||
if (storedValue.get())
|
||||
size = storedValue->getLength()*getValueTypeSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user