From 5d074168f38e6ee87c34087343f7a7abc9ac5be4 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Thu, 1 Jun 2023 15:09:27 +0100 Subject: [PATCH] Rearrange declarations for readability Signed-off-by: David Horstmann --- library/oid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/oid.c b/library/oid.c index 312a6375b..cda87a9dc 100644 --- a/library/oid.c +++ b/library/oid.c @@ -955,11 +955,11 @@ int mbedtls_oid_from_numeric_string(mbedtls_asn1_buf *oid, const char *str_bound = oid_str + size; unsigned int val = 0; unsigned int component1, component2; - /* Count the number of dots to get a worst-case allocation size. */ - size_t num_dots = 0; size_t encoded_len; unsigned char *minimum_mem; + /* Count the number of dots to get a worst-case allocation size. */ + size_t num_dots = 0; for (size_t i = 0; i < size; i++) { if (oid_str[i] == '.') { num_dots++;