summaryrefslogtreecommitdiff
path: root/ponymap.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-21 02:50:31 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-21 03:29:36 +0200
commitd18224cc657abb18fbaad2bddd3a3c9bbe937ae1 (patch)
tree2c2e48f16c36a771991ea0132d51bc183631848f /ponymap.c
parent6542353daeb2d542044b7a241fdb400a930d768b (diff)
downloadponymap-d18224cc657abb18fbaad2bddd3a3c9bbe937ae1.tar.gz
ponymap-d18224cc657abb18fbaad2bddd3a3c9bbe937ae1.tar.xz
ponymap-d18224cc657abb18fbaad2bddd3a3c9bbe937ae1.zip
Fix terminal output for multiple ports per service
Diffstat (limited to 'ponymap.c')
-rw-r--r--ponymap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ponymap.c b/ponymap.c
index 6b8155c..a4cae9f 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -1356,6 +1356,8 @@ target_dump_terminal (struct target *self, struct target_dump_data *data)
u->service->name, u->transport->name));
s_tail = &service->next;
p_tail = &service->children;
+
+ last_service = u->service;
}
port = *p_tail = node_new (xstrdup_printf ("port %" PRIu16, u->port));