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
This commit is contained in:
parent
0e1a6450a4
commit
551e9c94b3
|
@ -65,9 +65,6 @@ int BIT_STRING_fromBuf(BIT_STRING_t *st, const uint8_t *str, unsigned int bit_le
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len < 0)
|
|
||||||
len = strlen((char*)str);
|
|
||||||
|
|
||||||
buf = MALLOC(len);
|
buf = MALLOC(len);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
|
|
Loading…
Reference in New Issue