diff options
author | Nils Larsch <nils@openssl.org> | 2006-03-15 17:45:43 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-03-15 17:45:43 +0000 |
commit | 67b6f1ca889d789e04c58e5b2fbad0944bb1cd1a (patch) | |
tree | 9a367d762cfb0e55a2b8d224d8e7e1928089387c /crypto/asn1/tasn_new.c | |
parent | a4ff392503fbc9ccd50fb425a69e50a64058314c (diff) |
fix problems found by coverity: remove useless code
Diffstat (limited to 'crypto/asn1/tasn_new.c')
-rw-r--r-- | crypto/asn1/tasn_new.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/asn1/tasn_new.c b/crypto/asn1/tasn_new.c index 083f88576a..95e7de25aa 100644 --- a/crypto/asn1/tasn_new.c +++ b/crypto/asn1/tasn_new.c @@ -345,10 +345,7 @@ int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it) return 1; case V_ASN1_BOOLEAN: - if (it) - *(ASN1_BOOLEAN *)pval = it->size; - else - *(ASN1_BOOLEAN *)pval = -1; + *(ASN1_BOOLEAN *)pval = it->size; return 1; case V_ASN1_NULL: |