mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-08 03:22:21 +03:00
The user-defined function routines failed to detect a malloc() failure. (CVS 397)
FossilOrigin-Name: 085b0d671a1dac964693d69d866224de155dfe4c
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains routines used for analyzing expressions and
|
||||
** for generating VDBE code that evaluates expressions in SQLite.
|
||||
**
|
||||
** $Id: expr.c,v 1.46 2002/02/27 01:47:12 drh Exp $
|
||||
** $Id: expr.c,v 1.47 2002/02/27 01:53:13 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -1396,6 +1396,7 @@ UserFunc *sqliteFindUserFunction(
|
||||
){
|
||||
UserFunc *pFirst, *p, *pMaybe;
|
||||
pFirst = p = (UserFunc*)sqliteHashFind(&db->userFunc, zName, nName);
|
||||
if( p==0 ) return 0;
|
||||
if( !createFlag && nArg<0 ){
|
||||
while( p && p->xFunc==0 && p->xStep==0 ){ p = p->pNext; }
|
||||
return p;
|
||||
|
||||
Reference in New Issue
Block a user