Commit 5643bb97 by Tom Tromey Committed by Tom Tromey

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

From-SVN: r53279
parent 6706f116
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment