From 59bfc53849b371cbd787e3417035831ea897f015 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Fri, 5 Apr 2024 14:14:29 +0200 Subject: [PATCH] bearssl: fix compiler warnings "variables may be uninitialized when used" Fixes #13290 Closes #13297 --- lib/vtls/bearssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.3