Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix ret value for invalid comments
  • Loading branch information
erlend-aasland committed Jun 13, 2022
commit ca053d7f7848548729985d0428d3a3f30fd4a29e
4 changes: 2 additions & 2 deletions Modules/_sqlite/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ lstrip_sql(const char *sql)
break;
case '-':
if (pos[1] && pos[1] != '-') {
return &pos[1];
return pos;
}
// Skip line comments.
if (pos[1] == '-') {
Expand All @@ -162,7 +162,7 @@ lstrip_sql(const char *sql)
return pos;
case '/':
if (pos[1] && pos[1] != '*') {
return &pos[1];
return pos;
}
// Skip C style comments.
if (pos[1] == '*') {
Expand Down