mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-27 02:56:30 -05:00
Fix Clang warnings: implicit conversion of NULL to bool
warning: implicit conversion of NULL constant to 'bool' [-Wnull-
conversion]
return NULL ;
~~~~~~ ^~~~
false
This commit is contained in:
parent
e83104ee0f
commit
4ac3b3f5bf
1 changed files with 1 additions and 1 deletions
|
|
@ -1193,7 +1193,7 @@ bool p3GxsTunnelService::locked_sendClearTunnelData(RsGxsTunnelDHPublicKeyItem *
|
||||||
if(gitem->data_bytes == NULL)
|
if(gitem->data_bytes == NULL)
|
||||||
{
|
{
|
||||||
delete gitem ;
|
delete gitem ;
|
||||||
return NULL ;
|
return false ;
|
||||||
}
|
}
|
||||||
// by convention, we use a IV of 0 for unencrypted data.
|
// by convention, we use a IV of 0 for unencrypted data.
|
||||||
memset(gitem->data_bytes,0,8) ;
|
memset(gitem->data_bytes,0,8) ;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue