-/* $OpenBSD: x509_utl.c,v 1.10 2023/04/23 10:19:52 tb Exp $ */
+/* $OpenBSD: x509_utl.c,v 1.11 2023/04/23 11:25:21 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
{
BIGNUM *bn = NULL;
ASN1_INTEGER *aint;
- int isneg, ishex;
+ int isneg = 0, ishex = 0;
int ret;
if (!value) {
if (value[0] == '-') {
value++;
isneg = 1;
- } else
- isneg = 0;
+ }
if (value[0] == '0' && ((value[1] == 'x') || (value[1] == 'X'))) {
value += 2;
ishex = 1;
- } else
- ishex = 0;
+ }
if (ishex)
ret = BN_hex2bn(&bn, value);