Code

csv plugin: set datadir null when free
authorManuel Luis Sanmartin Rozada <manuel.luis@gmail.com>
Tue, 6 Aug 2013 10:30:52 +0000 (12:30 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 7 Aug 2013 07:42:01 +0000 (09:42 +0200)
commitd8a5927958995e2c62d5c32a395a724db1af9123
treeabc6880b1245a1b832cad80936603307498ad6a1
parent44dcf2017576cbd398574ac66a732a5d2b179c3c
csv plugin: set datadir null when free

If you define twice DataDir:

    <Plugin csv>
DataDir "/opt/collectd/var/lib/collectd/csv"
DataDir stdout
    </Plugin>

the second time datadir will not be null and
you will get garbage in value_list_to_filename

Signed-off-by: Florian Forster <octo@collectd.org>
src/csv.c