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
(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;