aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-02-16 16:20:17 +0000
committerRon Yorston <rmy@pobox.com>2021-02-16 16:20:17 +0000
commitf36d2f0ce9d31d0a842cbdf354b5262472047ae2 (patch)
treeb90f3f36e258f8cdd9e366ea0d9235c73ecfbfd3
parent1ade2225d2d6bf44399b37fd8411cd44a7fea99a (diff)
downloadbusybox-w32-f36d2f0ce9d31d0a842cbdf354b5262472047ae2.tar.gz
busybox-w32-f36d2f0ce9d31d0a842cbdf354b5262472047ae2.tar.bz2
busybox-w32-f36d2f0ce9d31d0a842cbdf354b5262472047ae2.zip
winansi: don't check return from xmalloc
-rw-r--r--win32/winansi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/win32/winansi.c b/win32/winansi.c
index c13d021d2..45737bf2d 100644
--- a/win32/winansi.c
+++ b/win32/winansi.c
@@ -950,9 +950,6 @@ int winansi_vfprintf(FILE *stream, const char *format, va_list list)
950 950
951 if (len > sizeof(small_buf) - 1) { 951 if (len > sizeof(small_buf) - 1) {
952 buf = xmalloc(len + 1); 952 buf = xmalloc(len + 1);
953 if (!buf)
954 goto abort;
955
956 va_copy(cp, list); 953 va_copy(cp, list);
957 len = vsnprintf(buf, len + 1, format, cp); 954 len = vsnprintf(buf, len + 1, format, cp);
958 va_end(cp); 955 va_end(cp);