From 4d9064345698dd684723a5f6be05c82bd43e1806 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 13 Aug 2016 16:27:47 +0200 Subject: [PATCH] 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. --- src/collectdctl.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2