aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/last_char_is.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/last_char_is.c b/libbb/last_char_is.c
index fba05f974..891739b5e 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 */
12char* FAST_FUNC last_char_is(const char *s, int c) 12char* FAST_FUNC last_char_is(const char *s, int c)
13{ 13{
14 if (!s[0]) 14 if (IF_PLATFORM_MINGW32(!s ||) !s[0])
15 return NULL; 15 return NULL;
16 while (s[1]) 16 while (s[1])
17 s++; 17 s++;