1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Do not create an error message if there is no error. (CVS 2607)

FossilOrigin-Name: 3aa47c5587819a5fc3e2cb53a7fbc79ba65f0c3b
This commit is contained in:
drh
2005-08-21 17:48:46 +00:00
parent 992f2d781d
commit 130b9f4040
3 changed files with 8 additions and 8 deletions

View File

@@ -213,7 +213,7 @@ int sqlite3_step(sqlite3_stmt *pStmt){
rc = SQLITE_MISUSE;
}
sqlite3Error(p->db, rc, "%s", p->zErrMsg);
sqlite3Error(p->db, rc, p->zErrMsg ? "%s" : 0, p->zErrMsg);
return rc;
}