don't pass NULL buffer to formatter in provider list generation
commite598b6675690fb79fc9c74ffb11be97f8f258421
authorJim Meyering <meyering@redhat.com>
Fri, 21 Jan 2011 15:05:22 +0000 (21 16:05 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 8 Feb 2011 11:14:55 +0000 (8 12:14 +0100)
tree5ed3298d609ece327a8cd9b5d03247808eee4855
parent80a978acd30fc420ce4d4139caa955d43ec04ac7
don't pass NULL buffer to formatter in provider list generation

* rest.c (prov_list_generator): Pre-allocate a reasonably-large
buffer, rather than starting with a 0-length buffer and relying on
the ~doubling/realloc loop to make the buffer large enough.
rest.c