aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2016-07-14 09:22:16 +0000
committermistachkin <mistachkin@noemail.net>2016-07-14 09:22:16 +0000
commit0129a54a167cd10f94cc5830890589e5138de7d5 (patch)
treeb10c1651cacadade70d75151a50550a7358b59d6 /src
parentc0e2203adb52051f623b6a3ef9a27511ca4ae8b3 (diff)
downloadsqlite-0129a54a167cd10f94cc5830890589e5138de7d5.tar.gz
sqlite-0129a54a167cd10f94cc5830890589e5138de7d5.zip
Fix copy/paste typo in the new sqlite3_expanded_sql() function.
FossilOrigin-Name: e7d18c70d2b8f09c9f5b978fe3d69d1088e42322
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 355021e97..72a882c17 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -83,8 +83,8 @@ const char *sqlite3_sql(sqlite3_stmt *pStmt){
*/
char *sqlite3_expanded_sql(sqlite3_stmt *pStmt){
Vdbe *p = (Vdbe *)pStmt;
- return p ? sqlite3VdbeExpandSql(p, p->zSql) : 0;
- if( p->zSql==0 ) return 0;
+ if( p==0 || p->zSql==0 ) return 0;
+ return sqlite3VdbeExpandSql(p, p->zSql);
}
/*