stats: Fix handling of the no mtu command

For the atoi we need to pass the val as a string. This means
we need to write "0" which then gets parsed to 0.

[src/vty/stats_vty.c:90]: (error) Possible null pointer dereference: val
This commit is contained in:
Holger Hans Peter Freyther 2015-11-02 15:53:09 +01:00
parent 7921975989
commit 8f0374f752
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ DEFUN(cfg_no_stats_reporter_mtu, cfg_no_stats_reporter_mtu_cmd,
NO_STR "Set the maximum packet size\n")
{
return set_srep_parameter_int(vty, osmo_stats_reporter_set_mtu,
0, "mtu");
"0", "mtu");
}
DEFUN(cfg_stats_reporter_prefix, cfg_stats_reporter_prefix_cmd,