aboutsummaryrefslogtreecommitdiffstats
path: root/tc/q_fifo.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/q_fifo.c')
-rw-r--r--tc/q_fifo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tc/q_fifo.c b/tc/q_fifo.c
index c9ab123f..3ee8ce9a 100644
--- a/tc/q_fifo.c
+++ b/tc/q_fifo.c
@@ -30,9 +30,8 @@ static void explain(void)
static int fifo_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
{
- int ok=0;
- struct tc_fifo_qopt opt;
- memset(&opt, 0, sizeof(opt));
+ int ok = 0;
+ struct tc_fifo_qopt opt = {};
while (argc > 0) {
if (strcmp(*argv, "limit") == 0) {