Skip to content

Commit

Permalink
initialize variables before using them
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeglic authored and acetcom committed Jan 22, 2024
1 parent a3afc47 commit dcdfc97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pfcp/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dcdfc97

Please sign in to comment.