]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Workaround for warning in desc_encode_v3().
authorNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2016 01:27:14 +0000 (20:27 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2016 01:27:14 +0000 (20:27 -0500)
Fixes bug 20581.

src/or/hs_descriptor.c

index 7c5d204ef344335f92868e8c9ecab721806fb329..96db9367352752e05ddb84da2468d5a2c5e686ea 100644 (file)
@@ -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;
     }