From: Nick Porter Date: Wed, 18 Sep 2024 07:49:44 +0000 (+0100) Subject: Remove unused initial values X-Git-Tag: release_3_2_7~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8278b7e405deb6ce1098d9c5c0da2fbbb626ced;p=thirdparty%2Ffreeradius-server.git Remove unused initial values --- diff --git a/src/main/tls.c b/src/main/tls.c index 736ee4182e7..47c5eeb1ca5 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -1248,7 +1248,7 @@ static unsigned int record_minus(record_t *rec, void *ptr, void tls_session_information(tls_session_t *tls_session) { - char const *str_write_p, *str_version, *str_content_type = ""; + char const *str_write_p, *str_version, *str_content_type; char const *str_details1 = "", *str_details2= ""; char const *details = NULL; REQUEST *request; diff --git a/src/modules/rlm_rest/rest.c b/src/modules/rlm_rest/rest.c index e7fb019c5dc..d18c0084575 100644 --- a/src/modules/rlm_rest/rest.c +++ b/src/modules/rlm_rest/rest.c @@ -394,7 +394,7 @@ void *mod_conn_create(TALLOC_CTX *ctx, void *instance) CURL *candle = curl_easy_init(); CURLcode ret = CURLE_OK; - char const *option = "unknown"; + char const *option; if (!candle) { ERROR("rlm_rest (%s): Failed to create CURL handle", inst->xlat_name); @@ -1965,7 +1965,7 @@ static int rest_request_config_body(UNUSED rlm_rest_t *instance, rlm_rest_sectio CURL *candle = handle->handle; CURLcode ret = CURLE_OK; - char const *option = "unknown"; + char const *option; ssize_t len; @@ -2045,7 +2045,7 @@ int rest_request_config(rlm_rest_t *instance, rlm_rest_section_t *section, http_auth_type_t auth = section->auth; CURLcode ret = CURLE_OK; - char const *option = "unknown"; + char const *option; char const *content_type; VALUE_PAIR *header;