mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 04:50:24 +08:00
* gjavah.c (throwable_p): Use xstrdup, not strdup.
From-SVN: r53279
This commit is contained in:
parent
6706f1167e
commit
5643bb97e4
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user