Skip to content

Commit

Permalink
Merge pull request #122 from jelu/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
jelu authored Aug 29, 2024
2 parents 66e542a + 68b5385 commit 67bd9ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 1 addition & 10 deletions src/sql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,24 +415,15 @@ class Per_sort {
}
Tlink* p = result.m_fl[0];
it = m_table.m_rows.begin();
// int cnt = 0;
while (p) {
*it++ = p->row;
// cnt++;
*it++ = p->row;
Tlink* e = p->get_eq();
while (e) {
// cnt++;
*it++ = e->row;
e = e->get_eq();
}
p = p->m_next;
};
// CID 1436254 Dereference after null check
// Code disabled, it makes no sense
// if(cnt != table_size)
// {
// p++;
// }

delete[] links;
}
Expand Down
1 change: 0 additions & 1 deletion src/sql.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ class OP : public Token {
}
m_name += ")";
}
// m_name+=")";
return m_name.c_str();
}
Coltype::Type ret_type() { return m_t; }
Expand Down

0 comments on commit 67bd9ef

Please sign in to comment.