diff options
Diffstat (limited to 'tc/m_gact.c')
-rw-r--r-- | tc/m_gact.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tc/m_gact.c b/tc/m_gact.c index b22ce191..ea2c9ec8 100644 --- a/tc/m_gact.c +++ b/tc/m_gact.c @@ -97,16 +97,13 @@ parse_gact(struct action_util *a, int *argc_p, char ***argv_p, char **argv = *argv_p; int ok = 0; int action = TC_POLICE_RECLASSIFY; - struct tc_gact p; + struct tc_gact p = { .action = TC_POLICE_RECLASSIFY }; #ifdef CONFIG_GACT_PROB int rd = 0; struct tc_gact_p pp; #endif struct rtattr *tail; - memset(&p, 0, sizeof(p)); - p.action = TC_POLICE_RECLASSIFY; - if (argc < 0) return -1; |