Skip to content

Commit

Permalink
Fixed GH-3554 (#3584)
Browse files Browse the repository at this point in the history
Removed the extra condition
  • Loading branch information
bmribler authored Sep 25, 2023
1 parent de95c02 commit bab0671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/H5FDs3comms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
}
Expand Down

0 comments on commit bab0671

Please sign in to comment.