aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/udpfwd/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/udpfwd/parse.c b/examples/udpfwd/parse.c
index 979145c..78df01b 100644
--- a/examples/udpfwd/parse.c
+++ b/examples/udpfwd/parse.c
@@ -328,6 +328,7 @@ netbe_parse_dest(const char *fname, struct netbe_dest_prm *prm)
rc = -ENOMEM;
break;
}
+ memset(&dp[n], 0, sizeof(dp[0]) * (num - n));
}
dp[n].line = ln + 1;
@@ -560,6 +561,7 @@ netfe_parse_cfg(const char *fname, struct netfe_lcore_prm *lp)
rc = -ENOMEM;
break;
}
+ memset(&sp[n], 0, sizeof(sp[0]) * (num - n));
}
sp[n].line = ln + 1;