write_graphite plugin: Don't allocate {Pre,Post}fix if unspecified.
authorFlorian Forster <octo@collectd.org>
Thu, 2 Feb 2012 16:43:28 +0000 (17:43 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 2 Feb 2012 17:18:06 +0000 (18:18 +0100)
commitcbe5d0b3deec5978a5b0c61371d5c87b9285a0ae
treead828d3be8ee982dff7ecb44daacb8a37437e811
parent75754cebc8d16dc4246d83c61dc5adba610ddfa0
write_graphite plugin: Don't allocate {Pre,Post}fix if unspecified.

Just leave them at NULL and catch this condition in wg_format_name().
src/write_graphite.c