mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-17 18:04:43 +08:00
* diagnostic.c (init_output_buffer): Handle case of null PREFIX.
From-SVN: r32112
This commit is contained in:
parent
f871e8996d
commit
4eda9c6582
@ -1,3 +1,7 @@
|
||||
Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* diagnostic.c (init_output_buffer): Handle case of null PREFIX.
|
||||
|
||||
2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
|
||||
|
||||
* config/i386/i386.h: If IN_TARGET_LIBS is defined, make
|
||||
|
@ -152,7 +152,7 @@ init_output_buffer (buffer, prefix, max_length)
|
||||
char *prefix;
|
||||
int max_length;
|
||||
{
|
||||
int prefix_length = strlen (prefix);
|
||||
int prefix_length = prefix == 0 ? 0 : strlen (prefix);
|
||||
|
||||
obstack_init (&buffer->obstack);
|
||||
buffer->prefix = prefix;
|
||||
|
Loading…
Reference in New Issue
Block a user