Change strlen(s) > 0 => *s != '\000'.

systemlib
Lars Buitinck 2015-03-23 22:18:23 +01:00
parent 92b704c1a6
commit 4dfb2ecaf0
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ func (c *SQLiteConn) Prepare(query string) (driver.Stmt, error) {
return nil, c.lastError()
}
var t string
if tail != nil && C.strlen(tail) > 0 {
if tail != nil && *tail != '\000' {
t = strings.TrimSpace(C.GoString(tail))
}
ss := &SQLiteStmt{c: c, s: s, t: t}