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/asn1parse.c b/library/asn1parse.c index 7e8fc32..9c47ba3 100644 --- a/library/asn1parse.c +++ b/library/asn1parse.c
@@ -269,7 +269,7 @@ /* Allocate and assign next pointer */ if( *p < end ) { - cur->next = (asn1_sequence *) polarssl_malloc( + cur->next = polarssl_malloc( sizeof( asn1_sequence ) ); if( cur->next == NULL )