mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Linux: Make the C++ code compatible with old compilers (g++ 4.4.7 on CentOS 6)
This commit is contained in:
@@ -169,7 +169,7 @@ namespace VeraCrypt
|
||||
shared_ptr<TLVNode> TLVParser::TLV_Find(shared_ptr<TLVNode> node, uint16 tag)
|
||||
{
|
||||
size_t i = 0;
|
||||
shared_ptr<TLVNode> tmpnode = NULL;
|
||||
shared_ptr<TLVNode> tmpnode;
|
||||
if (node->Tag == tag)
|
||||
{
|
||||
return node;
|
||||
@@ -177,11 +177,11 @@ namespace VeraCrypt
|
||||
for (i = 0; i < node->Subs->size(); i++)
|
||||
{
|
||||
tmpnode = TLV_Find(node->Subs->at(i),tag);
|
||||
if (tmpnode != NULL)
|
||||
if (tmpnode)
|
||||
{
|
||||
return tmpnode;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
return shared_ptr<TLVNode>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user