aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}
/*