summaryrefslogtreecommitdiff
path: root/gcc/java/gjavah.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-08 04:51:50 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-08 04:51:50 +0000
commit754814e8868bb00ecd70169ec60d4244b7678f3a (patch)
tree17ee3cd9f0a45ea33f4111bcfa0387ac7084f2a5 /gcc/java/gjavah.c
parent0b045cf7e3079e720da52fe4b56c1111c5c9f126 (diff)
downloadgcc-754814e8868bb00ecd70169ec60d4244b7678f3a.tar.gz
* gjavah.c (throwable_p): Use xstrdup, not strdup.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r--gcc/java/gjavah.c4
1 files changed, 2 insertions, 2 deletions
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;