summaryrefslogtreecommitdiff
path: root/src/common/aes.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2015-03-21 01:59:05 +0100
committerSebastian Hahn <sebastian@torproject.org>2015-03-21 02:00:17 +0100
commit348f2744cf0d026b1bd06a11d599f0ecf675038d (patch)
tree0e4113fd07110a424abbe581614b3a03f7c9dbd9 /src/common/aes.c
parent98c3942162831ddccea9dcf149d4c7f12b0a52a9 (diff)
downloadtor-348f2744cf0d026b1bd06a11d599f0ecf675038d.tar.gz
tor-348f2744cf0d026b1bd06a11d599f0ecf675038d.zip
Initialize two variables
This is a trivial change to get around two compiler warnings when assertions are removed during coverage builds.
Diffstat (limited to 'src/common/aes.c')
-rw-r--r--src/common/aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/aes.c b/src/common/aes.c
index 7651f1d93a..95026ddf6e 100644
--- a/src/common/aes.c
+++ b/src/common/aes.c
@@ -331,7 +331,7 @@ static void
aes_set_key(aes_cnt_cipher_t *cipher, const char *key, int key_bits)
{
if (should_use_EVP) {
- const EVP_CIPHER *c;
+ const EVP_CIPHER *c = 0;
switch (key_bits) {
case 128: c = EVP_aes_128_ecb(); break;
case 192: c = EVP_aes_192_ecb(); break;