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

nickm at torproject.org nickm at torproject.org
Mon Nov 7 01:27:42 UTC 2016


commit 0b787b1daf68a7da44a5465e4b7afca417761449
Author: Nick Mathewson <nickm at torproject.org>
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;
     }



More information about the tor-commits mailing list