[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Workaround for warning in desc_encode_v3().



commit 0b787b1daf68a7da44a5465e4b7afca417761449
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sun Nov 6 20:27:14 2016 -0500

    Workaround for warning in desc_encode_v3().
    
    Fixes bug 20581.
---
 src/or/hs_descriptor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/hs_descriptor.c b/src/or/hs_descriptor.c
index 7c5d204..96db936 100644
--- a/src/or/hs_descriptor.c
+++ b/src/or/hs_descriptor.c
@@ -784,7 +784,7 @@ desc_encode_v3(const hs_descriptor_t *desc, char **encoded_out)
 
   /* Build the encrypted data section. */
   {
-    char *enc_b64_blob;
+    char *enc_b64_blob=NULL;
     if (encode_encrypted_data(desc, &enc_b64_blob) < 0) {
       goto err;
     }

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits