Since FILE *_fp was not explicitly initialized, all the consequent print_*() calls were failing.
Signed-off-by: Roman Mashak <m...@mojatatu.com> --- ip/ipmonitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ip/ipmonitor.c b/ip/ipmonitor.c index 3171d47..f4d502a 100644 --- a/ip/ipmonitor.c +++ b/ip/ipmonitor.c @@ -284,6 +284,9 @@ int do_ipmonitor(int argc, char **argv) if (lnsid) { groups |= nl_mgrp(RTNLGRP_NSID); } + + new_json_obj(json, stdout); + if (file) { FILE *fp; int err; -- 1.9.1