initialize variables before using them

This commit is contained in:
Bostjan Meglic 2024-01-11 12:46:43 +01:00 committed by Sukchan Lee
parent a3afc4764c
commit dcdfc970ce
1 changed files with 3 additions and 0 deletions

View File

@ -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,