Skip to content

Commit

Permalink
opal/keval_parse: fix conditional ordering
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
  • Loading branch information
hjelmn committed Mar 8, 2016
1 parent f89cc3c commit 607be72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/util/keyval_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static void trim_name(char *buffer, const char* prefix, const char* suffix)

/* trim spaces at the end */
echr = buffer + buffer_len;
while (isspace (*(echr - 1)) && echr > buffer) {
while (echr > buffer && isspace (*(echr - 1))) {
echr--;
}
echr[0] = '\0';
Expand Down

0 comments on commit 607be72

Please sign in to comment.