From: David Edelsohn Date: Thu, 28 Aug 1997 17:37:30 +0000 (+0000) Subject: * sim-options.c (standard_option_handler): Use xstrdup, not strdup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36db8e64abf2772b35db7e9405f7ce8cdb21f31f;p=binutils-gdb.git * sim-options.c (standard_option_handler): Use xstrdup, not strdup. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 03efafe2fd9..9c586fa98f4 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 28 10:36:34 1997 Doug Evans + + * sim-options.c (standard_option_handler): Use xstrdup, not strdup. + Thu Aug 28 12:09:15 1997 Andrew Cagney * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index 8ace37a4de0..94342e4a66b 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -264,7 +264,7 @@ standard_option_handler (sd, opt, arg, is_command) case OPTION_TARGET: { - STATE_TARGET (sd) = strdup (arg); + STATE_TARGET (sd) = xstrdup (arg); break; }