From dcdfc970cefa00958f3712d3f81893253d5aa5ee Mon Sep 17 00:00:00 2001 From: Bostjan Meglic Date: Thu, 11 Jan 2024 12:46:43 +0100 Subject: [PATCH] initialize variables before using them --- lib/pfcp/context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pfcp/context.c b/lib/pfcp/context.c index 3a44ff35a..cdd0d3511 100644 --- a/lib/pfcp/context.c +++ b/lib/pfcp/context.c @@ -748,6 +748,9 @@ int ogs_pfcp_context_parse_config(const char *local, const char *remote) const char *high[OGS_MAX_NUM_OF_SUBNET_RANGE]; int i, num = 0; + memset(low, 0, sizeof(low)); + memset(high, 0, sizeof(high)); + if (ogs_yaml_iter_type(&subnet_array) == YAML_MAPPING_NODE) { memcpy(&subnet_iter, &subnet_array,