summaryrefslogtreecommitdiffstats
path: root/crypto/objects
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>1999-12-19 16:07:19 +0000
committerAndy Polyakov <appro@openssl.org>1999-12-19 16:07:19 +0000
commit9a1e34e5deab94717758384d76a20b39ec9ed030 (patch)
tree36a577bff8b3f476da053ccdf0ab34ae4f0874a2 /crypto/objects
parent2b6313d0da133725bd9e01f8adef320bcfeb4487 (diff)
MacOS updates.
Diffstat (limited to 'crypto/objects')
-rw-r--r--crypto/objects/obj_dat.c6
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));