Skip to content

Commit

Permalink
Fix compile error on windows (#584)
Browse files Browse the repository at this point in the history
Motivation:

We did use the incorrect parameter name and so compilation on windows failed

Modifications:

Use correct name

Result:

Compilation on windows works again
  • Loading branch information
normanmaurer authored Oct 27, 2020
1 parent 0621b3c commit 6d84632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openssl-dynamic/src/main/c/jnilib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6d84632

Please sign in to comment.