From: Tom Tromey Date: Wed, 8 May 2002 04:51:50 +0000 (+0000) Subject: * gjavah.c (throwable_p): Use xstrdup, not strdup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5643bb97e425399371568fb86a817b191eb61dca;p=gcc.git * gjavah.c (throwable_p): Use xstrdup, not strdup. From-SVN: r53279 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index a8f7f208706..703658df722 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,5 +1,7 @@ 2002-05-07 Tom Tromey + * 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 diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index d152b372944..f4f2c2b6d25 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -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;