diff options
Diffstat (limited to 'tc/em_nbyte.c')
-rw-r--r-- | tc/em_nbyte.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tc/em_nbyte.c b/tc/em_nbyte.c index 87f3e9d2..52b4d10a 100644 --- a/tc/em_nbyte.c +++ b/tc/em_nbyte.c @@ -44,12 +44,10 @@ static int nbyte_parse_eopt(struct nlmsghdr *n, struct tcf_ematch_hdr *hdr, struct bstr *needle = args; unsigned long offset = 0, layer = TCF_LAYER_NETWORK; int offset_present = 0; - struct tcf_em_nbyte nb; - - memset(&nb, 0, sizeof(nb)); + struct tcf_em_nbyte nb = {}; #define PARSE_ERR(CARG, FMT, ARGS...) \ - em_parse_error(EINVAL, args, CARG, &nbyte_ematch_util, FMT ,##ARGS) + em_parse_error(EINVAL, args, CARG, &nbyte_ematch_util, FMT, ##ARGS) if (args == NULL) return PARSE_ERR(args, "nbyte: missing arguments"); |