mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-02 13:03:31 +00:00
initialize variables before using them
This commit is contained in:
committed by
Sukchan Lee
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,
|
||||
|
||||
Reference in New Issue
Block a user