mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix problems with the WatCom C compiler: Arrays must contain at least one
element. sqlite3FreeX declared properly. Don't allow run-time expression (the SQLITE_UTF16NATIVE macro) in an array initializer. (CVS 1640) FossilOrigin-Name: fbfc3c95a8abf25bb9e2b44cfeb7186c5b0591d7
This commit is contained in:
@@ -236,11 +236,12 @@ void sqlite3_set_auxdata(
|
||||
if( iArg<0 ) return;
|
||||
|
||||
if( !pCtx->pVdbeFunc || pCtx->pVdbeFunc->nAux<=iArg ){
|
||||
int nMalloc = sizeof(VdbeFunc)+sizeof(struct AuxData)*(iArg+1);
|
||||
pCtx->pVdbeFunc = sqliteRealloc(pCtx->pVdbeFunc, nMalloc);
|
||||
if( !pCtx->pVdbeFunc ) return;
|
||||
pCtx->pVdbeFunc->nAux = iArg+1;
|
||||
pCtx->pVdbeFunc->pFunc = pCtx->pFunc;
|
||||
VdbeFunc *pVdbeFunc;
|
||||
int nMalloc = sizeof(VdbeFunc)+sizeof(struct AuxData)*iArg;
|
||||
pCtx->pVdbeFunc = pVdbeFunc = sqliteRealloc(pCtx->pVdbeFunc, nMalloc);
|
||||
if( !pVdbeFunc ) return;
|
||||
pVdbeFunc->nAux = iArg+1;
|
||||
pVdbeFunc->pFunc = pCtx->pFunc;
|
||||
}
|
||||
|
||||
pAuxData = &pCtx->pVdbeFunc->apAux[iArg];
|
||||
|
Reference in New Issue
Block a user