X-Git-Url: https://the.earth.li/gitweb/?p=mqtt-arp.git;a=blobdiff_plain;f=mqtt-arp.c;fp=mqtt-arp.c;h=de0fcccea27cce24f0f2b4ffb3aeb6fcda8cc2b0;hp=71d8567e39653ca73b2fc75b5d70eebdc676ca02;hb=8742da72f15ac87fc3f61acaa1ad02e2964c1868;hpb=e6c7ebbe87ce08a21b3b5d77b82f7a03efa32e88 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);