From bab0671b109c9476fc48aefe54602a187e042aab Mon Sep 17 00:00:00 2001 From: bmribler <39579120+bmribler@users.noreply.github.com> Date: Mon, 25 Sep 2023 13:40:50 -0400 Subject: Fixed GH-3554 (#3584) Removed the extra condition --- src/H5FDs3comms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5FDs3comms.c b/src/H5FDs3comms.c index 7c5ff1d..9d6d30a 100644 --- a/src/H5FDs3comms.c +++ b/src/H5FDs3comms.c @@ -2756,7 +2756,7 @@ H5FD_s3comms_trim(char *dest, char *s, size_t s_len, size_t *n_written) /* Find first non-whitespace character from start; * reduce total length per character. */ - while ((s_len > 0) && isspace((unsigned char)s[0]) && s_len > 0) { + while (s_len > 0 && isspace((unsigned char)s[0])) { s++; s_len--; } -- cgit v0.12