From d316d8fee45e539251011f7a7457f48aaa53a495 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 19 Oct 2012 08:38:45 +0000 Subject: [PATCH] - fix uninitialized value --- src/transport/plugin_transport_http_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 07a587c66..a710cd3c2 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c @@ -372,7 +372,7 @@ client_exist_session (struct HTTP_Client_Plugin *plugin, struct Session *s) static int client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls) { - char *ttype; + char *ttype = "UNSPECIFIED"; if ((type == CURLINFO_TEXT) || (type == CURLINFO_HEADER_IN) || (type == CURLINFO_HEADER_OUT)) { char text[size + 2]; @@ -388,6 +388,7 @@ client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls) ttype = "HEADER_OUT"; break; default: + ttype = "UNSPECIFIED"; break; } -- 2.25.1