forked from mirror/go-sqlcipher
Change strlen(s) > 0 => *s != '\000'.
This commit is contained in:
parent
92b704c1a6
commit
4dfb2ecaf0
|
@ -373,7 +373,7 @@ func (c *SQLiteConn) Prepare(query string) (driver.Stmt, error) {
|
||||||
return nil, c.lastError()
|
return nil, c.lastError()
|
||||||
}
|
}
|
||||||
var t string
|
var t string
|
||||||
if tail != nil && C.strlen(tail) > 0 {
|
if tail != nil && *tail != '\000' {
|
||||||
t = strings.TrimSpace(C.GoString(tail))
|
t = strings.TrimSpace(C.GoString(tail))
|
||||||
}
|
}
|
||||||
ss := &SQLiteStmt{c: c, s: s, t: t}
|
ss := &SQLiteStmt{c: c, s: s, t: t}
|
||||||
|
|
Loading…
Reference in New Issue