summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbmribler <39579120+bmribler@users.noreply.github.com>2023-09-25 17:40:50 (GMT)
committerGitHub <noreply@github.com>2023-09-25 17:40:50 (GMT)
commitbab0671b109c9476fc48aefe54602a187e042aab (patch)
treeaafc0450c379d75fc26bd7205432f9749c7e17ae /src
parentde95c024f4d2831978d38f16cf1ad40095f1e619 (diff)
downloadhdf5-bab0671b109c9476fc48aefe54602a187e042aab.zip
hdf5-bab0671b109c9476fc48aefe54602a187e042aab.tar.gz
hdf5-bab0671b109c9476fc48aefe54602a187e042aab.tar.bz2
Fixed GH-3554 (#3584)
Removed the extra condition
Diffstat (limited to 'src')
-rw-r--r--src/H5FDs3comms.c2
1 files changed, 1 insertions, 1 deletions
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--;
}