summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-05 20:00:49 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 20:00:49 -0500
commit01700d779ca2a0cfb40b04741e3cdda5874d2156 (patch)
tree8dcd1ca287a63b7a6fdcb801bcb3622f85a783b9
parenta7a0cebb59d3956a43ed65c22b15f60007b16f77 (diff)
downloadtor-01700d779ca2a0cfb40b04741e3cdda5874d2156.tar.gz
tor-01700d779ca2a0cfb40b04741e3cdda5874d2156.zip
Initialize pk so that older gcc versions don't freak out.
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index de08b2ee7d..cb9d69c6cd 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;