write_sensu: avoid calling strlen() on variable set to NULL
authorMarc Fournier <marc.fournier@camptocamp.com>
Fri, 5 Feb 2016 14:16:09 +0000 (15:16 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Fri, 5 Feb 2016 14:16:09 +0000 (15:16 +0100)
commitfa9635edea38401727b81e176f035a8c9d6b7bc6
tree2fc89c7f456c0e398cbe68f95a1e35101de85ef5
parent65e795a1d9ac14405862913b91d0f00688fa5e32
write_sensu: avoid calling strlen() on variable set to NULL

This fixes a segfault when no `Tag` option is set.
src/write_sensu.c