bearssl: fix compiler warnings

"variables may be uninitialized when used"

Fixes #13290
Closes #13297
This commit is contained in:
Gisle Vanem 2024-04-05 14:14:29 +02:00 committed by Daniel Stenberg
parent 995b42eb33
commit 59bfc53849
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -120,9 +120,9 @@ static CURLcode load_cafile(struct cafile_source *source,
br_x509_pkey *pkey;
FILE *fp = 0;
unsigned char buf[BUFSIZ];
const unsigned char *p;
const unsigned char *p = NULL;
const char *name;
size_t n, i, pushed;
size_t n = 0, i, pushed;
DEBUGASSERT(source->type == CAFILE_SOURCE_PATH
|| source->type == CAFILE_SOURCE_BLOB);