From acdad474b48e3acd7511e7899b85d8ada67c7031 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 22 Jan 2021 12:22:01 +0000 Subject: Revert "libbb: reinstate NULL check in last_char_is()" This reverts commit 9828af970e6b030823beb05dae56eed44cb65fb3 which was applied as a temporary fix to an upstream issue. Upstream has since fixed the problem with commit 16e82c61d (tar: fix fallout of last_char_is(NULL) no longer being allowed). --- libbb/last_char_is.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/last_char_is.c b/libbb/last_char_is.c index 891739b5e..fba05f974 100644 --- a/libbb/last_char_is.c +++ b/libbb/last_char_is.c @@ -11,7 +11,7 @@ /* Find out if the last character of a string matches the one given */ char* FAST_FUNC last_char_is(const char *s, int c) { - if (IF_PLATFORM_MINGW32(!s ||) !s[0]) + if (!s[0]) return NULL; while (s[1]) s++; -- cgit v1.2.3-55-g6feb