1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

bug fix was testing the wrong variable.

This commit is contained in:
Alain Magloire 2002-09-07 01:59:52 +00:00
parent 4907b4f35a
commit 52b2e88105
2 changed files with 1 additions and 2 deletions

View file

@ -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);