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

Use sqliteOsFileExists() in the debugging hook in vdbe.c, instead of access().

Ticket #341. (CVS 1014)

FossilOrigin-Name: 7d3405b95bae74e0c476a7bdf708ca518723eaf7
This commit is contained in:
drh
2003-06-07 11:33:45 +00:00
parent 94ce4c1e3b
commit 6f8fd3c171
3 changed files with 10 additions and 12 deletions

View File

@@ -36,9 +36,10 @@
** in this file for details. If in doubt, do not deviate from existing
** commenting and indentation practices when changing or adding code.
**
** $Id: vdbe.c,v 1.226 2003/06/04 16:24:40 drh Exp $
** $Id: vdbe.c,v 1.227 2003/06/07 11:33:45 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
#include <ctype.h>
/*
@@ -1497,9 +1498,6 @@ void sqliteVdbeMakeReady(
int isExplain /* True if the EXPLAIN keywords is present */
){
int n;
#ifdef MEMORY_DEBUG
extern int access(const char*,int);
#endif
assert( p!=0 );
assert( p->aStack==0 );
@@ -1524,7 +1522,7 @@ void sqliteVdbeMakeReady(
sqliteHashInit(&p->agg.hash, SQLITE_HASH_BINARY, 0);
p->agg.pSearch = 0;
#ifdef MEMORY_DEBUG
if( access("vdbe_trace",0)==0 ){
if( sqliteOsFileExists("vdbe_trace") ){
p->trace = stdout;
}
#endif