diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-28 04:27:44 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-10-28 15:09:05 +0000 |
commit | 551e9c94b3e067f548bcf08e1c3f202f90d6558c (patch) | |
tree | 2c290892f293af85b2fc148b4f2772309e49603a /src | |
parent | 0e1a6450a44e367b796fc5a905e3a081ae12a20c (diff) |
fix compiler warning: drop dead code from BIT_STRING_fromBuf()
The warning is, on FreeBSD,
CC asn1helpers.lo
asn1helpers.c:68:10: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
if (len < 0)
~~~ ^ ~
Change-Id: I80867da697d744d7ef4d70c8f24031f5781fb11a
Diffstat (limited to 'src')
-rw-r--r-- | src/asn1helpers.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/asn1helpers.c b/src/asn1helpers.c index a4ced70..4e5e08d 100644 --- a/src/asn1helpers.c +++ b/src/asn1helpers.c @@ -65,9 +65,6 @@ int BIT_STRING_fromBuf(BIT_STRING_t *st, const uint8_t *str, unsigned int bit_le return 0; } - if (len < 0) - len = strlen((char*)str); - buf = MALLOC(len); if (!buf) { errno = ENOMEM; |