diff options
author | Ron Yorston <rmy@pobox.com> | 2021-01-22 12:22:01 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-01-22 12:22:01 +0000 |
commit | acdad474b48e3acd7511e7899b85d8ada67c7031 (patch) | |
tree | cbbedff11fe3c4892c8119703d8c85bd93bca0d1 | |
parent | df81ab878f0b8124f3ead12d8299abec6ce5fac3 (diff) | |
download | busybox-w32-acdad474b48e3acd7511e7899b85d8ada67c7031.tar.gz busybox-w32-acdad474b48e3acd7511e7899b85d8ada67c7031.tar.bz2 busybox-w32-acdad474b48e3acd7511e7899b85d8ada67c7031.zip |
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).
-rw-r--r-- | libbb/last_char_is.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
11 | /* Find out if the last character of a string matches the one given */ | 11 | /* Find out if the last character of a string matches the one given */ |
12 | char* FAST_FUNC last_char_is(const char *s, int c) | 12 | char* FAST_FUNC last_char_is(const char *s, int c) |
13 | { | 13 | { |
14 | if (IF_PLATFORM_MINGW32(!s ||) !s[0]) | 14 | if (!s[0]) |
15 | return NULL; | 15 | return NULL; |
16 | while (s[1]) | 16 | while (s[1]) |
17 | s++; | 17 | s++; |