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_crl.c b/library/x509_crl.c index 2c90582..9ca8f08 100644 --- a/library/x509_crl.c +++ b/library/x509_crl.c
@@ -277,7 +277,7 @@ if( crl->version != 0 && crl->next == NULL ) { - crl->next = (x509_crl *) polarssl_malloc( sizeof( x509_crl ) ); + crl->next = polarssl_malloc( sizeof( x509_crl ) ); if( crl->next == NULL ) {