summaryrefslogtreecommitdiff
path: root/x11-toolkits/swt-devel/files/patch-os.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/swt-devel/files/patch-os.c')
-rw-r--r--x11-toolkits/swt-devel/files/patch-os.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/x11-toolkits/swt-devel/files/patch-os.c b/x11-toolkits/swt-devel/files/patch-os.c
deleted file mode 100644
index ad5cc50177bc..000000000000
--- a/x11-toolkits/swt-devel/files/patch-os.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- os.c.orig 2008-12-31 16:16:39.000000000 -0500
-+++ os.c 2008-12-31 16:20:29.000000000 -0500
-@@ -18036,11 +18036,16 @@
- jintLong rc = 0;
- OS_NATIVE_ENTER(env, that, realpath_FUNC);
- if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
-- if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ if (arg1) {
-+ if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ } else
-+ lparg1 = malloc(PATH_MAX);
- rc = (jintLong)realpath((const char *)lparg0, (char *)lparg1);
- fail:
- if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
- if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
-+ if (!arg1 && lparg1 && rc == 0)
-+ free(lparg1);
- OS_NATIVE_EXIT(env, that, realpath_FUNC);
- return rc;
- }