list providers: avoid syntax error in JSON output
commit8fb2017e8a820be824f4486cd04e915bee19ce62
authorJim Meyering <meyering@redhat.com>
Tue, 18 Jan 2011 18:16:16 +0000 (18 19:16 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 18 Jan 2011 18:18:52 +0000 (18 19:18 +0100)
tree9ffa1c1b898a6c6eed4520a60f1af3fbe5f66e63
parent4212f02a207caf13ac3c2903a67a449ac314bcf2
list providers: avoid syntax error in JSON output

Without this change, we would print "[,\n" at the beginning
of the list of JSON-formatted providers.
* template.c (tmpl_prov_entry): Don't emit the leading ","
on the first entry.
* template.h: Adjust prototype.
* rest.c: Update sole caller.
Spotted by Jeff Darcy.
rest.c
template.c
template.h