1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* 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

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