commit | c531b4af3c711b668f469b7cef4e683c54000822 | [log] [tgz] |
---|---|---|
author | Mansour Moufid <mansourmoufid@gmail.com> | Sun Feb 15 17:35:38 2015 -0500 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Feb 16 10:43:52 2015 +0000 |
tree | 9d5a147a32367b74785a50ae5fa317424c9e7344 | |
parent | fd9afb29d3c5969179319af171f8d6181f10eeb0 [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 5861f94..a7b275f 100644 --- a/library/dhm.c +++ b/library/dhm.c
@@ -507,7 +507,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 );