From 8c0f7356354effe08ef43f0db56e816d9a8cee93 Mon Sep 17 00:00:00 2001 From: withmorten Date: Fri, 21 Jun 2019 20:23:49 +0200 Subject: [PATCH] Fix compilation with WITH_MQTT = no and WITH_HTTP = yes (fixes #307) --- recorder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recorder.c b/recorder.c index 6d07788..93f5d32 100644 --- a/recorder.c +++ b/recorder.c @@ -1191,11 +1191,12 @@ int main(int argc, char **argv) { #if WITH_MQTT struct mosquitto *mosq = NULL; - UT_string *clientid, *uviewsdir; + UT_string *clientid; int rc, i; struct utsname uts; bool do_tls = false; #endif /* WITH_MQTT */ + UT_string *uviewsdir; char err[1024], *p; char *logfacility = "local0"; #if WITH_MQTT