mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-11 19:03:32 +08:00
2000-12-31 H.J. Lu <hjl@gnu.org>
* listing.c (listing_message): Allocate string only if it is used. * configure: Rebuild.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2000-12-31 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* listing.c (listing_message): Allocate string only if it is
|
||||||
|
used.
|
||||||
|
|
||||||
|
* configure: Rebuild.
|
||||||
|
|
||||||
2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
|
2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
|
||||||
|
|
||||||
* doc/internals.texi (Relaxing with a table) <after relaxation>:
|
* doc/internals.texi (Relaxing with a table) <after relaxation>:
|
||||||
|
343
gas/configure
vendored
343
gas/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -225,13 +225,13 @@ static void
|
|||||||
listing_message (name, message)
|
listing_message (name, message)
|
||||||
const char *name;
|
const char *name;
|
||||||
const char *message;
|
const char *message;
|
||||||
|
{
|
||||||
|
if (listing_tail != (list_info_type *) NULL)
|
||||||
{
|
{
|
||||||
unsigned int l = strlen (name) + strlen (message) + 1;
|
unsigned int l = strlen (name) + strlen (message) + 1;
|
||||||
char *n = (char *) xmalloc (l);
|
char *n = (char *) xmalloc (l);
|
||||||
strcpy (n, name);
|
strcpy (n, name);
|
||||||
strcat (n, message);
|
strcat (n, message);
|
||||||
if (listing_tail != (list_info_type *) NULL)
|
|
||||||
{
|
|
||||||
listing_tail->message = n;
|
listing_tail->message = n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user