commit | 5a3add2c675548f20c8e6925fc565642df30fa2d | [log] [tgz] |
---|---|---|
author | Dave Rodgman <dave.rodgman@arm.com> | Mon Sep 25 10:51:46 2023 +0100 |
committer | GitHub <noreply@github.com> | Mon Sep 25 10:51:46 2023 +0100 |
tree | a6c694f94c415c141f6ba1324616f46135e282ef | |
parent | f6f76c5a2576bfc359c46ad8f58e58568a93f269 [diff] | |
parent | a15b4851d4945225c53bc4ef5d303cdcc51af053 [diff] |
Merge pull request #8234 from kouzhudong/development Fix MSVC error C4703 about possibly uninitialized variable in pkwrite.c
diff --git a/library/pkwrite.c b/library/pkwrite.c index 6ed98bf..1cb8374 100644 --- a/library/pkwrite.c +++ b/library/pkwrite.c
@@ -379,7 +379,7 @@ #if defined(MBEDTLS_PK_HAVE_ECC_KEYS) mbedtls_ecp_group_id ec_grp_id = MBEDTLS_ECP_DP_NONE; #endif - const char *oid; + const char *oid = NULL; if (size == 0) { return MBEDTLS_ERR_ASN1_BUF_TOO_SMALL;