Optimize: better shortcut evaluation ("Howard Chu" <hyc@highlandsun.com>).

This commit is contained in:
Lutz Jänicke
2002-04-18 11:52:28 +00:00
parent 1532a839fc
commit 0a0102b0fd

View File

@@ -437,8 +437,7 @@ int OBJ_obj2txt(char *buf, int buf_len, ASN1_OBJECT *a, int no_name)
return(0);
}
nid=OBJ_obj2nid(a);
if ((nid == NID_undef) || no_name) {
if (no_name || (nid=OBJ_obj2nid(a)) == NID_undef) {
len=a->length;
p=a->data;