From: Brent Collins Date: Mon, 10 Apr 2017 18:33:37 +0000 (-0500) Subject: Fix variable definition placement to adhere to older C standard. X-Git-Tag: 2.0.0-rc1~27^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7aa9e7a97fe6e73ef6253381138add799cc40096;p=platform%2Fupstream%2Ffreerdp.git Fix variable definition placement to adhere to older C standard. --- diff --git a/winpr/libwinpr/crypto/cipher.c b/winpr/libwinpr/crypto/cipher.c index e2ed072..841c68c 100644 --- a/winpr/libwinpr/crypto/cipher.c +++ b/winpr/libwinpr/crypto/cipher.c @@ -46,6 +46,9 @@ WINPR_RC4_CTX* winpr_RC4_New_Internal(const BYTE* key, size_t keylen, BOOL override_fips) { WINPR_RC4_CTX* ctx = NULL; +#if defined(WITH_OPENSSL) + EVP_CIPHER* evp = NULL; +#endif if (!key || (keylen == 0)) return NULL; @@ -54,7 +57,7 @@ WINPR_RC4_CTX* winpr_RC4_New_Internal(const BYTE* key, size_t keylen, BOOL overr if (!(ctx = EVP_CIPHER_CTX_new())) return NULL; - EVP_CIPHER* evp = EVP_rc4(); + evp = EVP_rc4(); if (!evp) return NULL;