Skip to content

Commit 607be72

Browse files
committed
opal/keval_parse: fix conditional ordering
Signed-off-by: Nathan Hjelm <[email protected]>
1 parent f89cc3c commit 607be72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/util/keyval_parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static void trim_name(char *buffer, const char* prefix, const char* suffix)
228228

229229
/* trim spaces at the end */
230230
echr = buffer + buffer_len;
231-
while (isspace (*(echr - 1)) && echr > buffer) {
231+
while (echr > buffer && isspace (*(echr - 1))) {
232232
echr--;
233233
}
234234
echr[0] = '\0';

0 commit comments

Comments
 (0)