mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-09 03:12:55 +00:00
Apply the semantic patch rm-malloc-cast.cocci.
for dir in library programs; do
spatch --sp-file scripts/rm-malloc-cast.cocci --dir $dir \
--in-place;
done
This commit is contained in:
committed by
Manuel Pégourié-Gonnard
parent
fd9afb29d3
commit
c531b4af3c
@@ -299,8 +299,8 @@ static int ssl_test( struct options *opt )
|
||||
}
|
||||
}
|
||||
|
||||
read_buf = (unsigned char *) polarssl_malloc( opt->buffer_size );
|
||||
write_buf = (unsigned char *) polarssl_malloc( opt->buffer_size );
|
||||
read_buf = polarssl_malloc( opt->buffer_size );
|
||||
write_buf = polarssl_malloc( opt->buffer_size );
|
||||
|
||||
if( read_buf == NULL || write_buf == NULL )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user