Skip to content

Commit 19519fe

Browse files
Merge pull request #1425 from matthiasblaesing/fix_pre_c99
Fix build on pre-C99 compilers
2 parents c5ffcc5 + bb35cc2 commit 19519fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

native/dispatch.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3144,8 +3144,9 @@ Java_com_sun_jna_Native_getWindowHandle0(JNIEnv* UNUSED_JAWT(env), jclass UNUSED
31443144

31453145
char* prop = newCString(env, jprop);
31463146
char* saveptr = NULL;
3147+
char* propToBeTokeninzed = NULL;
31473148

3148-
for(char* propToBeTokeninzed = prop; ; propToBeTokeninzed = NULL) {
3149+
for(propToBeTokeninzed = prop; ; propToBeTokeninzed = NULL) {
31493150
char* pathElement = strtok_r(propToBeTokeninzed, ":", &saveptr);
31503151

31513152
if(pathElement == NULL) {

0 commit comments

Comments
 (0)