[Forensics-changes] [yara] 83/368: Move declaration to the beginning to be C89 conformant.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit 62513e14d41fc7341338532fec2271e6ea0ed4e7
Author: Wesley Shields <wxs at atarininja.org>
Date: Thu Oct 1 18:28:17 2015 -0400
Move declaration to the beginning to be C89 conformant.
---
libyara/libyara.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libyara/libyara.c b/libyara/libyara.c
index 40663ab..24b0cb4 100644
--- a/libyara/libyara.c
+++ b/libyara/libyara.c
@@ -140,13 +140,16 @@ YR_API void yr_finalize_thread(void)
YR_API int yr_finalize(void)
{
+ #ifdef HAVE_LIBCRYPTO
+ int i;
+ #endif
+
yr_re_finalize_thread();
if (--init_count > 0)
return ERROR_SUCCESS;
#ifdef HAVE_LIBCRYPTO
- int i;
for (i = 0; i < CRYPTO_num_locks(); i ++)
pthread_mutex_destroy(&locks[i]);
OPENSSL_free(locks);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list