]> git.ipfire.org Git - thirdparty/mtr.git/commit
json: Fix malformed json when the "hubs" list is empty 210/head
authorMatt Kimball <matt.kimball@gmail.com>
Wed, 12 Jul 2017 19:48:46 +0000 (12:48 -0700)
committerMatt Kimball <matt.kimball@gmail.com>
Wed, 12 Jul 2017 19:48:46 +0000 (12:48 -0700)
commita535587757fe2834a224b874d96c4df1f251da05
treececa71e9a60c940ef8807fa365bb75d0f40a03a4
parent860a39cdf5a8ffe4afddc057dbe7b3ec7aaacb7b
json: Fix malformed json when the "hubs" list is empty

When generating JSON output, and when no hosts are found when
probing, the generated JSON was malformed.  (i.e. when the "hubs" list
in the generated JSON is empty, there was no closing bracket.)  This can
be reproduced by tracing to an unused host address on the local subnet.

This fixues issue #190.
ui/report.c