Skip to content
Snippets Groups Projects
Commit 4908a388 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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

parent 127973eb
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3469 passed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment