diff options
Diffstat (limited to 'libbb/perror_msg.c')
-rw-r--r-- | libbb/perror_msg.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libbb/perror_msg.c b/libbb/perror_msg.c index 2ec1a9b2a..a958cff00 100644 --- a/libbb/perror_msg.c +++ b/libbb/perror_msg.c | |||
@@ -15,9 +15,6 @@ void bb_perror_msg(const char *s, ...) | |||
15 | 15 | ||
16 | va_start(p, s); | 16 | va_start(p, s); |
17 | /* Guard against "<error message>: Success" */ | 17 | /* Guard against "<error message>: Success" */ |
18 | if (!errno) | 18 | bb_verror_msg(s, p, errno ? strerror(errno) : NULL); |
19 | bb_verror_msg(s, p, NULL); | ||
20 | else | ||
21 | bb_vperror_msg(s, p); | ||
22 | va_end(p); | 19 | va_end(p); |
23 | } | 20 | } |