1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Make sure the *pzErrMsg return from sqlite3_get_table() is aways zeroed.

Ticket #3598. (CVS 6195)

FossilOrigin-Name: 7035c35dbef72b7b4d00201a65734a6d93dd0d3e
This commit is contained in:
drh
2009-01-19 20:49:09 +00:00
parent 8b72747db0
commit 770b3cb763
3 changed files with 9 additions and 8 deletions

View File

@@ -16,7 +16,7 @@
** These routines are in a separate files so that they will not be linked
** if they are not used.
**
** $Id: table.c,v 1.38 2008/12/10 19:26:24 drh Exp $
** $Id: table.c,v 1.39 2009/01/19 20:49:10 drh Exp $
*/
#include "sqliteInt.h"
#include <stdlib.h>
@@ -132,6 +132,7 @@ int sqlite3_get_table(
*pazResult = 0;
if( pnColumn ) *pnColumn = 0;
if( pnRow ) *pnRow = 0;
if( pzErrMsg ) *pzErrMsg = 0;
res.zErrMsg = 0;
res.nResult = 0;
res.nRow = 0;