mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 03:49:29 -04:00
Remove misguiding if
This commit is contained in:
parent
03cc2e629d
commit
3b1606ceb9
1 changed files with 2 additions and 5 deletions
|
@ -90,14 +90,11 @@ bool RsTlvBinaryData::setBinData(const void *data, uint32_t size)
|
||||||
|
|
||||||
void RsTlvBinaryData::TlvClear()
|
void RsTlvBinaryData::TlvClear()
|
||||||
{
|
{
|
||||||
if (bin_data)
|
free(bin_data);
|
||||||
{
|
|
||||||
free(bin_data);
|
|
||||||
}
|
|
||||||
TlvShallowClear();
|
TlvShallowClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RsTlvBinaryData::TlvShallowClear()
|
void RsTlvBinaryData::TlvShallowClear()
|
||||||
{
|
{
|
||||||
bin_data = NULL;
|
bin_data = NULL;
|
||||||
bin_len = 0;
|
bin_len = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue