Skip to content

Commit

Permalink
Revert "Avoid trailing spaces in each line (#6910)."
Browse files Browse the repository at this point in the history
This reverts commit f659b49.
  • Loading branch information
asfernandes committed Jul 28, 2021
1 parent a4c15ca commit 6804925
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/dsql/dsql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2245,13 +2245,8 @@ static void sql_info(thread_db* tdbb,
{
auto& localPath = *static_cast<decltype(path)*>(arg);
auto lineLen = strlen(line);

// Trim trailing spaces.
while (lineLen > 0 && line[lineLen - 1] == ' ')
--lineLen;

char offsetStr[10];
const auto offsetLen = sprintf(offsetStr, "%5d", (int) offset);
auto offsetLen = sprintf(offsetStr, "%5d", (int) offset);

localPath.push(reinterpret_cast<const UCHAR*>(offsetStr), offsetLen);
localPath.push(' ');
Expand Down

0 comments on commit 6804925

Please sign in to comment.