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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tc/q_fifo.c b/tc/q_fifo.c
index f7fc88b3..3ee8ce9a 100644
--- a/tc/q_fifo.c
+++ b/tc/q_fifo.c
@@ -31,9 +31,7 @@ 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));
+ struct tc_fifo_qopt opt = {};
while (argc > 0) {
if (strcmp(*argv, "limit") == 0) {