* sim-options.c (standard_option_handler): Use xstrdup, not strdup.

This commit is contained in:
David Edelsohn 1997-08-28 17:37:30 +00:00
parent 0c0b16f9d4
commit 36db8e64ab
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
* sim-options.c (standard_option_handler): Use xstrdup, not strdup.
Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
* sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator

View File

@ -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;
}