aboutsummaryrefslogtreecommitdiffstats
path: root/tc/q_red.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/q_red.c')
-rw-r--r--tc/q_red.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tc/q_red.c b/tc/q_red.c
index e015cbda..ec706aaf 100644
--- a/tc/q_red.c
+++ b/tc/q_red.c
@@ -35,7 +35,7 @@ static void explain(void)
static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
{
- struct tc_red_qopt opt;
+ struct tc_red_qopt opt = {};
unsigned int burst = 0;
unsigned int avpkt = 0;
double probability = 0.02;
@@ -45,8 +45,6 @@ static int red_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nl
__u32 max_P;
struct rtattr *tail;
- memset(&opt, 0, sizeof(opt));
-
while (argc > 0) {
if (strcmp(*argv, "limit") == 0) {
NEXT_ARG();