From 08b6cddfcc4c296ea7c78e214977515c52791270 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 25 Apr 2024 00:22:41 +0100 Subject: [PATCH] Fix --- apps/mosquitto_ctrl/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mosquitto_ctrl/options.c b/apps/mosquitto_ctrl/options.c index be9d5a26..8f5d8939 100644 --- a/apps/mosquitto_ctrl/options.c +++ b/apps/mosquitto_ctrl/options.c @@ -288,7 +288,7 @@ static int client_config_line_proc(struct mosq_config *cfg, int *argc, char **ar if(tmp) { *tmp++ = 0; if(strlen(tmp) == 0){ - url = NULL; /* Prevent free of non-heap memory later */ + cfg->host = NULL; /* Prevent free of non-heap memory later */ fprintf(stderr, "Error: Empty port in URL.\n"); return 1; }