Commit 4908a388 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Resolve warning: ISO C++ forbids converting a string constant to ‘char*’

parent 127973eb
Pipeline #3469 passed with stage
in 5 minutes and 23 seconds
......@@ -113,7 +113,7 @@ extern "C" BOOL spamlog(scfg_t* cfg, struct mqtt* mqtt, char* prot, char* action
if(mqtt != NULL) {
char str[1024];
if(reason == NULL)
reason= "";
reason = (char*)"";
snprintf(str, sizeof(str), "%s\t%s\t%s\t%s\t%s\t%s\t%s", prot, action, host, ip_addr, from, to_user, reason);
mqtt_pub_strval(mqtt, TOPIC_HOST, "spam", str);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment