commit | 369e6c20b34be59288cbbecdba47a17a35d927a4 | [log] [tgz] |
---|---|---|
author | Mansour Moufid <mansourmoufid@gmail.com> | Sun Feb 15 17:35:38 2015 -0500 |
committer | Mansour Moufid <mansourmoufid@gmail.com> | Sun Feb 15 17:49:11 2015 -0500 |
tree | af3a7bd5122a2969603f28ec7f4940a400c01238 | |
parent | 5b535de47447d56cf02668ccb2609b4f03c9378f [diff] [blame] |
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
diff --git a/library/dhm.c b/library/dhm.c index fb7826a..491b763 100644 --- a/library/dhm.c +++ b/library/dhm.c
@@ -505,7 +505,7 @@ *n = (size_t) size; if( *n + 1 == 0 || - ( *buf = (unsigned char *) polarssl_malloc( *n + 1 ) ) == NULL ) + ( *buf = polarssl_malloc( *n + 1 ) ) == NULL ) { fclose( f ); return( POLARSSL_ERR_DHM_MALLOC_FAILED );