Skip to content

Commit 4dfb2ec

Browse files
committed
Change strlen(s) > 0 => *s != '\000'.
1 parent 92b704c commit 4dfb2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlite3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func (c *SQLiteConn) Prepare(query string) (driver.Stmt, error) {
373373
return nil, c.lastError()
374374
}
375375
var t string
376-
if tail != nil && C.strlen(tail) > 0 {
376+
if tail != nil && *tail != '\000' {
377377
t = strings.TrimSpace(C.GoString(tail))
378378
}
379379
ss := &SQLiteStmt{c: c, s: s, t: t}

0 commit comments

Comments
 (0)