* jni.cc (add_char): Added missing `else'.

From-SVN: r31991
This commit is contained in:
Tom Tromey 2000-02-15 22:42:10 +00:00 committed by Tom Tromey
parent 9f09b1f272
commit abfb784400
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2000-02-15 Tom Tromey <tromey@cygnus.com>
* jni.cc (add_char): Added missing `else'.
* jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
fails.

View File

@ -1251,7 +1251,7 @@ add_char (char *buf, jchar c, int *here)
}
else if (c == '/')
buf[(*here)++] = '_';
if ((c >= '0' && c <= '9')
else if ((c >= '0' && c <= '9')
|| (c >= 'a' && c <= 'z')
|| (c >= 'A' && c <= 'Z'))
buf[(*here)++] = (char) c;