Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlain Magloire2002-09-07 01:59:52 +0000
committerAlain Magloire2002-09-07 01:59:52 +0000
commit52b2e881052864c247073958221e363597b0f65b (patch)
tree6a8dc3caef0e9e616122deb0a58ecf31ec8e13f5 /core
parent4907b4f35a582cb3d80cd9d7610a3b40fc991cae (diff)
downloadorg.eclipse.cdt-52b2e881052864c247073958221e363597b0f65b.tar.gz
org.eclipse.cdt-52b2e881052864c247073958221e363597b0f65b.tar.xz
org.eclipse.cdt-52b2e881052864c247073958221e363597b0f65b.zip
bug fix was testing the wrong variable.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core.linux/library/pty.c3
-rw-r--r--core/org.eclipse.cdt.core.linux/os/linux/x86/libpty.sobin9320 -> 9320 bytes
2 files changed, 1 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.linux/library/pty.c b/core/org.eclipse.cdt.core.linux/library/pty.c
index 3e1c55f123b..4b9e682c3ee 100644
--- a/core/org.eclipse.cdt.core.linux/library/pty.c
+++ b/core/org.eclipse.cdt.core.linux/library/pty.c
@@ -12,13 +12,12 @@ Java_org_eclipse_cdt_utils_pty_PTY_forkpty (JNIEnv *env, jobject jobj) {
jstring jstr = NULL;
int master = -1;
char line[1024]; /* FIXME: Should be enough */
- int err;
jclass cls;
line[0] = '\0';
master = ptym_open(line);
- if (err >= 0) {
+ if (master >= 0) {
/* Get a reference to the obj's class */
cls = (*env)->GetObjectClass(env, jobj);
diff --git a/core/org.eclipse.cdt.core.linux/os/linux/x86/libpty.so b/core/org.eclipse.cdt.core.linux/os/linux/x86/libpty.so
index 418f8f2658b..771653eb3ec 100644
--- a/core/org.eclipse.cdt.core.linux/os/linux/x86/libpty.so
+++ b/core/org.eclipse.cdt.core.linux/os/linux/x86/libpty.so
Binary files differ

Back to the top