Skip to content

Commit

Permalink
Correction to bogus comparison pf pointer with character
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Richard Robert Kimmitt committed Nov 30, 2018
1 parent a44d3a4 commit 59e2dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piton/tools/src/configsrch/TreSearch.C
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const char* TreSearch::NextWord(void) {
void TreSearch::MoveAndSetEndPtr(void) {
for (endPtr = trakPtr + 1; (*endPtr != '\0') && (! isspace(*endPtr));
endPtr++) ;
if (endPtr == '\0') {
if (*endPtr == '\0') {
assert((endPtr - LineBf) < (MAXENVSIZE - 1));
*(endPtr + 1) = '\0';
}
Expand Down

0 comments on commit 59e2dbf

Please sign in to comment.