mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-06 02:52:07 +08:00
String literal should be const
This commit is contained in:
@@ -363,7 +363,7 @@ static int check_access(struct mosquitto__listener *listener, struct MHD_Connect
|
||||
MHD_free(context.password);
|
||||
|
||||
if(auth_rc || acl_rc){
|
||||
char *buf = "Not authorised\n";
|
||||
const char *buf = "Not authorised\n";
|
||||
struct MHD_Response *response = MHD_create_response_from_buffer(strlen(buf), (void *)buf, MHD_RESPMEM_MUST_COPY);
|
||||
MHD_queue_basic_auth_fail_response(connection, "Mosquitto API", response);
|
||||
MHD_destroy_response(response);
|
||||
|
||||
Reference in New Issue
Block a user