* gjavah.c (throwable_p): Use xstrdup, not strdup.

From-SVN: r53279
This commit is contained in:
Tom Tromey 2002-05-08 04:51:50 +00:00 committed by Tom Tromey
parent 6706f1167e
commit 5643bb97e4
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2002-05-07 Tom Tromey <tromey@redhat.com>
* gjavah.c (throwable_p): Use xstrdup, not strdup.
Fix for PR java/1200:
* gjavah.c (throwable_p): New function.
(decode_signature_piece): Use it. A `WeakReference' isn't the

View File

@ -1137,11 +1137,11 @@ throwable_p (signature)
(htab_del) free);
/* Make sure the root classes show up in the tables. */
str = strdup ("java.lang.Throwable");
str = xstrdup ("java.lang.Throwable");
slot = htab_find_slot (throw_hash, str, INSERT);
*slot = (PTR) str;
str = strdup ("java.lang.Object");
str = xstrdup ("java.lang.Object");
slot = htab_find_slot (non_throw_hash, str, INSERT);
*slot = (PTR) str;