diff options
| author | Chirag Shah <chirag@nvidia.com> | 2023-10-29 11:20:37 -0700 | 
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2023-10-29 11:20:37 -0700 | 
| commit | 43443e828a0b1147fc0866b3e13205d4e7903a65 (patch) | |
| tree | e9edb671818cfa46541ac2bb228c9ed406ef9a92 /lib/vty.h | |
| parent | 4d7f6295c6487b438d50280c1d7ddfe490d4749c (diff) | |
*: 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 'lib/vty.h')
| -rw-r--r-- | lib/vty.h | 2 | 
1 files changed, 1 insertions, 1 deletions
@@ -362,7 +362,7 @@ extern bool vty_set_include(struct vty *vty, const char *regexp);   */  extern int vty_json(struct vty *vty, struct json_object *json);  extern int vty_json_no_pretty(struct vty *vty, struct json_object *json); -extern void vty_json_empty(struct vty *vty); +extern void vty_json_empty(struct vty *vty, struct json_object *json);  /* post fd to be passed to the vtysh client   * fd is owned by the VTY code after this and will be closed when done   */  | 
