]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Initialize two variables
authorSebastian Hahn <sebastian@torproject.org>
Sat, 21 Mar 2015 00:59:05 +0000 (01:59 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 21 Mar 2015 01:00:17 +0000 (02:00 +0100)
This is a trivial change to get around two compiler warnings when
assertions are removed during coverage builds.

src/common/aes.c
src/or/connection.c

index 7651f1d93aa7875f74e681b65dcbe675142966fd..95026ddf6e3fdb965895485d1c7b3fc6e3d15de3 100644 (file)
@@ -331,7 +331,7 @@ static void
 aes_set_key(aes_cnt_cipher_t *cipher, const char *key, int key_bits)
 {
   if (should_use_EVP) {
-    const EVP_CIPHER *c;
+    const EVP_CIPHER *c = 0;
     switch (key_bits) {
       case 128: c = EVP_aes_128_ecb(); break;
       case 192: c = EVP_aes_192_ecb(); break;
index dcf716f2fa99aa634085a43982ab51a148cb130e..369df6736353db1aeed9a525cd5986b071453e84 100644 (file)
@@ -1407,7 +1407,7 @@ static int
 connection_handle_listener_read(connection_t *conn, int new_type)
 {
   tor_socket_t news; /* the new socket */
-  connection_t *newconn;
+  connection_t *newconn = 0;
   /* information about the remote peer when connecting to other routers */
   struct sockaddr_storage addrbuf;
   struct sockaddr *remote = (struct sockaddr*)&addrbuf;