mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-03 16:53:36 +03:00
Fix an possible NULL pointer deference in the command-line shell that can
occur when using imposter mode. FossilOrigin-Name: ad08753a8bbf073ec4af9c3a5783ed664244d954
This commit is contained in:
@@ -1901,6 +1901,7 @@ static int shell_exec(
|
||||
continue;
|
||||
}
|
||||
zStmtSql = sqlite3_sql(pStmt);
|
||||
if( zStmtSql==0 ) zStmtSql = "";
|
||||
while( IsSpace(zStmtSql[0]) ) zStmtSql++;
|
||||
|
||||
/* save off the prepared statment handle and reset row count */
|
||||
|
||||
Reference in New Issue
Block a user