mirror of
https://github.com/transmission/transmission
synced 2025-02-23 14:40:43 +00:00
#1336: silence more compliation warnings
This commit is contained in:
parent
964d7e193c
commit
34061cb3e0
1 changed files with 1 additions and 4 deletions
|
@ -631,10 +631,7 @@ tr_malloc( size_t size )
|
|||
void*
|
||||
tr_malloc0( size_t size )
|
||||
{
|
||||
void * ret = tr_malloc( size );
|
||||
|
||||
memset( ret, 0, size );
|
||||
return ret;
|
||||
return size ? calloc( 1, size ) : NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue