Skip to content

Commit

Permalink
HPCC-33256 Fix coverity report in jhinplace.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chapman <[email protected]>
  • Loading branch information
richardkchapman committed Jan 15, 2025
1 parent 7eab1ba commit cc674d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/jhtree/jhinplace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,6 +2712,8 @@ class InplaceIndexTest : public CppUnit::TestFixture

unsigned searchLen = strlen(search);
unsigned trimLen = rtlTrimStrLen(searchLen, search);
if (!trimLen)
return;
StringBuffer text;
text.clear().append(search).setCharAt(trimLen-1, ' '); callback(text);
text.clear().append(search).setCharAt(trimLen-1, 'a'); callback(text);
Expand Down

0 comments on commit cc674d6

Please sign in to comment.