X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/401de08a88c0837c4c7fff0da0b8689160e6488b..39a9d9d85d0f2289d8c1257251311b7cf959c700:/sbr/error.c diff --git a/sbr/error.c b/sbr/error.c index 8057302a..efd02917 100644 --- a/sbr/error.c +++ b/sbr/error.c @@ -85,7 +85,7 @@ void advertise (const char *what, char *tail, const char *fmt, va_list ap) { int eindex = errno; - char buffer[NMH_BUFSIZ], errbuf[NMH_BUFSIZ], *err; + char buffer[NMH_BUFSIZ], *err; struct iovec iob[10], *iov; size_t niov; @@ -113,11 +113,6 @@ advertise (const char *what, char *tail, const char *fmt, va_list ap) } ADD_LITERAL(": "); err = strerror(eindex); - if (!err) { - /* this shouldn't happen, but we'll test for it just in case */ - snprintf(errbuf, sizeof(errbuf), "Error %d", eindex); - err = errbuf; - } ADD_VAR(err); } if (tail && *tail) {