From: Ruben Kerkhof Date: Sat, 13 Aug 2016 14:27:47 +0000 (+0200) Subject: collectdctl: prefix may be undefined as well X-Git-Tag: collectd-5.6.0~41 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4d9064345698dd684723a5f6be05c82bd43e1806;p=collectd.git collectdctl: prefix may be undefined as well This won't happen in practice since ./configure sets it, but it isn't set when running the code through lint. --- diff --git a/src/collectdctl.c b/src/collectdctl.c index 5978b5e6..8c884796 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -67,6 +67,10 @@ #include "libcollectdclient/collectd/client.h" +#ifndef PREFIX +# define PREFIX "/opt/" PACKAGE_NAME +#endif + #ifndef LOCALSTATEDIR # define LOCALSTATEDIR PREFIX "/var" #endif