* diagnostic.c (init_output_buffer): Handle case of null PREFIX.

From-SVN: r32112
This commit is contained in:
Richard Kenner 2000-02-23 12:17:57 +00:00 committed by Richard Kenner
parent f871e8996d
commit 4eda9c6582
2 changed files with 5 additions and 1 deletions

View File

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

View File

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