From 6d8463247cb6e86a3637cdb665bf8d7e412758ff Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 27 Oct 2020 19:21:31 +0100 Subject: [PATCH] Fix compile error on windows (#584) Motivation: We did use the incorrect parameter name and so compilation on windows failed Modifications: Use correct name Result: Compilation on windows works again --- openssl-dynamic/src/main/c/jnilib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl-dynamic/src/main/c/jnilib.c b/openssl-dynamic/src/main/c/jnilib.c index 747f1ef21..d24d0248a 100644 --- a/openssl-dynamic/src/main/c/jnilib.c +++ b/openssl-dynamic/src/main/c/jnilib.c @@ -239,7 +239,7 @@ static char* netty_internal_tcnative_util_rstrstr(char* s1rbegin, const char* s1 #ifdef _WIN32 static char* netty_internal_tcnative_util_rstrchar(char* s1rbegin, const char* s1rend, const char c2) { - if (s1rbegin == NULL || s1rend == NULL || s2 == NULL) { + if (s1rbegin == NULL || s1rend == NULL || c2 == NULL) { // Return NULL if any of the parameters is NULL to not risk a segfault return NULL; }