From 8742da72f15ac87fc3f61acaa1ad02e2964c1868 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Thu, 13 Sep 2018 18:38:18 +0100 Subject: [PATCH] Fix setting of default options mqtt_topic / location were never being set with their defaults. --- mqtt-arp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mqtt-arp.c b/mqtt-arp.c index 71d8567..de0fccc 100644 --- a/mqtt-arp.c +++ b/mqtt-arp.c @@ -366,9 +366,9 @@ int main(int argc, char *argv[]) if (!config.mqtt_host) config.mqtt_host = MQTT_HOST; if (!config.mqtt_topic) - config.mqtt_host = MQTT_TOPIC; + config.mqtt_topic = MQTT_TOPIC; if (!config.location) - config.mqtt_host = LOCATION; + config.location = LOCATION; signal(SIGTERM, shutdown_request); -- 2.39.5