tc: Fix for missing estimator initialization

When switching to C99 initializers, I forgot to add this one. This means
that when trying to set an estimator value, tc would complain about
spurious duplicate estimator parameter. But much worse, the random
variable content is sent to the kernel regardless of whether an
estimator was given or not.

Fixes: d17b136f7d ("Use C99 style initializers everywhere")
Reported-by: Stas Nichiporovich <stasn77@gmail.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
Phil Sutter 2016-08-03 11:43:45 +02:00 committed by Stephen Hemminger
parent e3d0f0c0e3
commit 9579afb24e
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ static int usage(void)
static int tc_qdisc_modify(int cmd, unsigned int flags, int argc, char **argv) static int tc_qdisc_modify(int cmd, unsigned int flags, int argc, char **argv)
{ {
struct qdisc_util *q = NULL; struct qdisc_util *q = NULL;
struct tc_estimator est; struct tc_estimator est = {};
struct { struct {
struct tc_sizespec szopts; struct tc_sizespec szopts;
__u16 *data; __u16 *data;