Minor bugfix in diagnostic.c

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Wed Feb 23 04:25:00 GMT 2000


I checked in the following:

Wed Feb 23 07:26:27 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

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

*** diagnostic.c	2000/02/22 22:12:59	1.8
--- diagnostic.c	2000/02/23 12:15:08
*************** init_output_buffer (buffer, prefix, max_
*** 153,157 ****
       int max_length;
  {
!   int prefix_length = strlen (prefix);
  
    obstack_init (&buffer->obstack);
--- 153,157 ----
       int max_length;
  {
!   int prefix_length = prefix == 0 ? 0 : strlen (prefix);
  
    obstack_init (&buffer->obstack);


More information about the Gcc-patches mailing list