Ticket #43539: patch-lib-error.c.diff

File patch-lib-error.c.diff, 488 bytes (added by macports@…, 11 years ago)
  • lib/error.c

    old new  
    377377  __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ",
    378378              file_name, line_number);
    379379#else
    380   fprintf (stderr, file_name != NULL ? "%s:%d: " : " ",
    381            file_name, line_number);
     380  if (file_name != NULL)
     381    fprintf (stderr, "%s:%d: ", file_name, line_number);
     382  else
     383    fprintf (stderr, " ");
    382384#endif
    383385
    384386  va_start (args, message);