[tor-commits] [tor/master] Initialize pk so that older gcc versions don't freak out.
nickm at torproject.org
nickm at torproject.org
Wed Dec 6 01:01:02 UTC 2017
commit 01700d779ca2a0cfb40b04741e3cdda5874d2156
Author: Nick Mathewson <nickm at torproject.org>
Date: Tue Dec 5 20:00:49 2017 -0500
Initialize pk so that older gcc versions don't freak out.
---
src/or/control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/control.c b/src/or/control.c
index de08b2ee7..cb9d69c6c 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -4676,7 +4676,7 @@ handle_control_add_onion(control_connection_t *conn,
/* Parse the "keytype:keyblob" argument. */
int hs_version = 0;
- add_onion_secret_key_t pk;
+ add_onion_secret_key_t pk = { NULL };
const char *key_new_alg = NULL;
char *key_new_blob = NULL;
char *err_msg = NULL;
More information about the tor-commits
mailing list