gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24412 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r24412 - gnunet/src/transport
Date: Fri, 19 Oct 2012 10:38:45 +0200

Author: wachs
Date: 2012-10-19 10:38:45 +0200 (Fri, 19 Oct 2012)
New Revision: 24412

Modified:
   gnunet/src/transport/plugin_transport_http_client.c
Log:
- fix uninitialized value

Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2012-10-19 00:07:55 UTC 
(rev 24411)
+++ gnunet/src/transport/plugin_transport_http_client.c 2012-10-19 08:38:45 UTC 
(rev 24412)
@@ -372,7 +372,7 @@
 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 @@
         ttype = "HEADER_OUT";
         break;
       default:
+        ttype = "UNSPECIFIED";
         break;
     }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]