diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-06-06 13:13:16 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2016-06-07 11:10:10 +0000 |
commit | 6f91cfe4aa7bbe6d1aae0bb4146630592b21a7b7 (patch) | |
tree | a4ac835bb7442f6acd4d9e926c6fe1fdf2f27212 /vpp-api-test/vat/api_format.c | |
parent | 39da6211a3371cee46642602f6d16b4afba37f83 (diff) |
ONE-18: Fix trailing garbage string in LISP status dump API
Change-Id: I5cba5eae5a981e41df3f227834a079e10982537f
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vpp-api-test/vat/api_format.c')
-rw-r--r-- | vpp-api-test/vat/api_format.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c index 0fb7d1f8..666a4bd1 100644 --- a/vpp-api-test/vat/api_format.c +++ b/vpp-api-test/vat/api_format.c @@ -2122,6 +2122,8 @@ vl_api_lisp_enable_disable_status_details_t_handler_json gpe_status = format (0, "%s", mp->gpe_status ? "enabled" : "disabled"); feature_status = format (0, "%s", mp->feature_status ? "enabled" : "disabled"); + vec_add1 (gpe_status, 0); + vec_add1 (feature_status, 0); if (VAT_JSON_ARRAY != vam->json_tree.type) { ASSERT(VAT_JSON_NONE == vam->json_tree.type); |