Skip to content

Commit

Permalink
Merge pull request #1425 from matthiasblaesing/fix_pre_c99
Browse files Browse the repository at this point in the history
Fix build on pre-C99 compilers
  • Loading branch information
matthiasblaesing committed Mar 16, 2022
2 parents c5ffcc5 + bb35cc2 commit 19519fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native/dispatch.c
Expand Up @@ -3144,8 +3144,9 @@ Java_com_sun_jna_Native_getWindowHandle0(JNIEnv* UNUSED_JAWT(env), jclass UNUSED

char* prop = newCString(env, jprop);
char* saveptr = NULL;
char* propToBeTokeninzed = NULL;

for(char* propToBeTokeninzed = prop; ; propToBeTokeninzed = NULL) {
for(propToBeTokeninzed = prop; ; propToBeTokeninzed = NULL) {
char* pathElement = strtok_r(propToBeTokeninzed, ":", &saveptr);

if(pathElement == NULL) {
Expand Down

0 comments on commit 19519fe

Please sign in to comment.