From 17be16abd28c491af1d533b902a25bcc0af59b1c Mon Sep 17 00:00:00 2001 From: Simon Morlat <simon.morlat@linphone.org> Date: Thu, 14 Sep 2023 17:38:15 +0200 Subject: [PATCH] Fix compilation issue in linphonec. --- console/commands.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/console/commands.c b/console/commands.c index 742e529e6c..1f41a8ace1 100644 --- a/console/commands.c +++ b/console/commands.c @@ -1548,13 +1548,12 @@ static void linphonec_proxy_add(LinphoneCore *lc) { } static void linphonec_proxy_display(LinphoneProxyConfig *cfg) { - char *route = linphone_proxy_config_get_route(cfg); + const char *route = linphone_proxy_config_get_route(cfg); char *identity = linphone_address_as_string(linphone_proxy_config_get_identity_address(cfg)); linphonec_out("sip address: %s\nroute: %s\nidentity: %s\nregister: %s\nexpires: %i\nregistered: %s\n", linphone_proxy_config_get_addr(cfg), (route != NULL) ? route : "", (identity != NULL) ? identity : "", linphone_proxy_config_register_enabled(cfg) ? "yes" : "no", linphone_proxy_config_get_expires(cfg), linphone_proxy_config_get_state(cfg) == LinphoneRegistrationOk ? "yes" : "no"); - bctbx_free(route); ms_free(identity); } -- GitLab