diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2008-09-06 19:31:51 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2008-09-06 19:31:51 +0000 |
commit | 206bef988c5dfb8ec07f72ed820c48398643329f (patch) | |
tree | 4b7724aaf93cce6ea63fa0c79900620264746c8a /java/eclipse-devel/files/post-patch-plugins-swt-gtk-library-os.c | |
parent | . Update to Eclipse Europa, copied over from eclipse-devel. (diff) |
. Update to Eclipse Ganymede
Submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>
Notes
Notes:
svn path=/head/; revision=220010
Diffstat (limited to 'java/eclipse-devel/files/post-patch-plugins-swt-gtk-library-os.c')
-rw-r--r-- | java/eclipse-devel/files/post-patch-plugins-swt-gtk-library-os.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/java/eclipse-devel/files/post-patch-plugins-swt-gtk-library-os.c b/java/eclipse-devel/files/post-patch-plugins-swt-gtk-library-os.c deleted file mode 100644 index a9841275e672..000000000000 --- a/java/eclipse-devel/files/post-patch-plugins-swt-gtk-library-os.c +++ /dev/null @@ -1,20 +0,0 @@ ---- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c.orig 2007-06-26 04:57:29.000000000 +0900 -+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c 2007-09-16 16:44:43.000000000 +0900 -@@ -17397,11 +17397,16 @@ - jint 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 = (jint)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; - } |