* gjavah.c (throwable_p): Use xstrdup, not strdup.
authorTom Tromey <tromey@redhat.com>
Wed, 8 May 2002 04:51:50 +0000 (04:51 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 8 May 2002 04:51:50 +0000 (04:51 +0000)
From-SVN: r53279

gcc/java/ChangeLog
gcc/java/gjavah.c

index a8f7f208706c3bf32697061bbde33e105e651edf..703658df7228775b0c2559c42ed2ad2afe42b259 100644 (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
index d152b3729445eee8299a769e51255b3d8bf8bdc3..f4f2c2b6d25f0c0b3fc94cdec9226c0f8954ca8b 100644 (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;