diff options
author | Andy Polyakov <appro@openssl.org> | 1999-12-19 17:07:19 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 1999-12-19 17:07:19 +0100 |
commit | 9a1e34e5deab94717758384d76a20b39ec9ed030 (patch) | |
tree | 36a577bff8b3f476da053ccdf0ab34ae4f0874a2 /crypto/objects | |
parent | Rename (diff) | |
download | openssl-9a1e34e5deab94717758384d76a20b39ec9ed030.tar.xz openssl-9a1e34e5deab94717758384d76a20b39ec9ed030.zip |
MacOS updates.
Diffstat (limited to 'crypto/objects')
-rw-r--r-- | crypto/objects/obj_dat.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c index d47b874399..aa5c50e5cc 100644 --- a/crypto/objects/obj_dat.c +++ b/crypto/objects/obj_dat.c @@ -214,16 +214,12 @@ int OBJ_new_nid(int num) int OBJ_add_object(ASN1_OBJECT *obj) { ASN1_OBJECT *o; - ADDED_OBJ *ao[4],*aop; + ADDED_OBJ *ao[4]={NULL,NULL,NULL,NULL},*aop; int i; if (added == NULL) if (!init_added()) return(0); if ((o=OBJ_dup(obj)) == NULL) goto err; - ao[ADDED_DATA]=NULL; - ao[ADDED_SNAME]=NULL; - ao[ADDED_LNAME]=NULL; - ao[ADDED_NID]=NULL; ao[ADDED_NID]=(ADDED_OBJ *)Malloc(sizeof(ADDED_OBJ)); if ((o->length != 0) && (obj->data != NULL)) ao[ADDED_DATA]=(ADDED_OBJ *)Malloc(sizeof(ADDED_OBJ)); |