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/x509_csr.c b/library/x509_csr.c index a6fe581..082fed1 100644 --- a/library/x509_csr.c +++ b/library/x509_csr.c
@@ -110,7 +110,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 );