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/x509_csr.c b/library/x509_csr.c index a5c9693..ad49abc 100644 --- a/library/x509_csr.c +++ b/library/x509_csr.c
@@ -112,7 +112,7 @@ /* * first copy the raw DER data */ - p = (unsigned char *) polarssl_malloc( len = buflen ); + p = polarssl_malloc( len = buflen ); if( p == NULL ) return( POLARSSL_ERR_X509_MALLOC_FAILED );