From: Gisle Vanem Date: Fri, 5 Apr 2024 12:14:29 +0000 (+0200) Subject: bearssl: fix compiler warnings X-Git-Tag: curl-8_8_0~291 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59bfc53849b371cbd787e3417035831ea897f015;p=thirdparty%2Fcurl.git bearssl: fix compiler warnings "variables may be uninitialized when used" Fixes #13290 Closes #13297 --- diff --git a/lib/vtls/bearssl.c b/lib/vtls/bearssl.c index 16f9c4e927..9b003d6958 100644 --- a/lib/vtls/bearssl.c +++ b/lib/vtls/bearssl.c @@ -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);