commit | a15b4851d4945225c53bc4ef5d303cdcc51af053 | [log] [tgz] |
---|---|---|
author | correy <112426112@qq.com> | Thu Sep 21 16:19:11 2023 +0800 |
committer | correy <112426112@qq.com> | Thu Sep 21 20:18:52 2023 +0800 |
tree | e76982f5ad57bf944abd4d9845daa01085b33aeb | |
parent | 5edb9427086a4cdc8e567bb8069db9d09a58e21b [diff] [blame] |
Fix MSVC error C4703 about possibly uninitialized variable in pkwrite.c Signed-off-by: correy <112426112@qq.com>
diff --git a/library/pkwrite.c b/library/pkwrite.c index eee64ab..a2b3e63 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;