* stdio-common/psignal.c (psignal): Don't use BUF when asprintf

failed.
This commit is contained in:
Roland McGrath 2004-06-15 20:04:37 +00:00
parent e1ad4c533a
commit 6d00189e10
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2004-06-14 Andreas Schwab <schwab@suse.de>
* stdio-common/psignal.c (psignal): Don't use BUF when asprintf
failed.
2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto

View File

@ -64,7 +64,8 @@ psignal (int sig, const char *s)
else
(void) fprintf (stderr, "%s%s%s\n", s, colon, _("Unknown signal"));
}
else
{
if (_IO_fwide (stderr, 0) > 0)
(void) __fwprintf (stderr, L"%s", buf);
else
@ -73,3 +74,4 @@ psignal (int sig, const char *s)
free (buf);
}
}
}