diff options
author | Chirag Shah <chirag@nvidia.com> | 2023-10-29 19:20:37 +0100 |
---|---|---|
committer | Chirag Shah <chirag@nvidia.com> | 2023-10-29 19:20:37 +0100 |
commit | 43443e828a0b1147fc0866b3e13205d4e7903a65 (patch) | |
tree | e9edb671818cfa46541ac2bb228c9ed406ef9a92 /pimd | |
parent | Merge pull request #13560 from donaldsharp/fpm_netlink_aroni (diff) | |
download | frr-43443e828a0b1147fc0866b3e13205d4e7903a65.tar.xz frr-43443e828a0b1147fc0866b3e13205d4e7903a65.zip |
*: modify empty json helper function
Modify empty json object to take input obj
instead of allocating always one.
There are situation where in error condition or no data
case print empty json (`{}`) with already allocated
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 2e90cf905..628a44594 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -78,7 +78,7 @@ static struct vrf *pim_cmd_lookup_vrf(struct vty *vty, struct cmd_token *argv[], if (!vrf) { if (uj) - vty_json_empty(vty); + vty_json_empty(vty, NULL); else vty_out(vty, "Specified VRF: %s does not exist\n", argv[*idx]->arg); |