forked from acouzens/open5gs
initialize variables before using them
This commit is contained in:
parent
a3afc4764c
commit
dcdfc970ce
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue