strjoin(): Fix behavior if output buffer is NULL.
authorFlorian Forster <octo@collectd.org>
Thu, 7 Feb 2019 10:33:16 +0000 (11:33 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 7 Feb 2019 10:39:29 +0000 (11:39 +0100)
commit90e7e99e0da5efb00991ef3c6efa0fdc2cb56701
treec8a36e4105cce24f6940c2e0f5b4753ffafd2de5
parent797fd2602376c24777cb34d554aec9d36e67a1a2
strjoin(): Fix behavior if output buffer is NULL.

Additionally, test the (NULL, 0) output buffer for all test cases rather
than an individual, isolated test case.

Fixes: #3062
src/daemon/common.c
src/daemon/common_test.c