aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-10-19 08:38:45 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-10-19 08:38:45 +0000
commitd316d8fee45e539251011f7a7457f48aaa53a495 (patch)
tree2ea5524333c3cf4df300ce2be66d3a2a695a48fe /src
parent5561c3c11144e78deef28dd43bb8036de12ebc16 (diff)
downloadgnunet-d316d8fee45e539251011f7a7457f48aaa53a495.tar.gz
gnunet-d316d8fee45e539251011f7a7457f48aaa53a495.zip
- fix uninitialized value
Diffstat (limited to 'src')
-rw-r--r--src/transport/plugin_transport_http_client.c3
1 files changed, 2 insertions, 1 deletions
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)
372static int 372static int
373client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls) 373client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls)
374{ 374{
375 char *ttype; 375 char *ttype = "UNSPECIFIED";
376 if ((type == CURLINFO_TEXT) || (type == CURLINFO_HEADER_IN) || (type == CURLINFO_HEADER_OUT)) 376 if ((type == CURLINFO_TEXT) || (type == CURLINFO_HEADER_IN) || (type == CURLINFO_HEADER_OUT))
377 { 377 {
378 char text[size + 2]; 378 char text[size + 2];
@@ -388,6 +388,7 @@ client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls)
388 ttype = "HEADER_OUT"; 388 ttype = "HEADER_OUT";
389 break; 389 break;
390 default: 390 default:
391 ttype = "UNSPECIFIED";
391 break; 392 break;
392 } 393 }
393 394