From d05e51b515885463faea7caf2ccf8af3b2cda319 Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Mon, 25 Sep 2023 02:32:03 -0500 Subject: [PATCH] Fixed GH-3554 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 7c5ff1def5f..9d6d30ac48d 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--; }