aboutsummaryrefslogtreecommitdiff
path: root/src/callback.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2006-01-18 16:51:35 +0000
committerdanielk1977 <danielk1977@noemail.net>2006-01-18 16:51:35 +0000
commit9e12800dec214b7ce95e5d4a16a66e37e65776be (patch)
tree91ef04a67e93512843040f3d9028308869cef678 /src/callback.c
parent1de57847f8b9516f0048a991afe711d2add06487 (diff)
downloadsqlite-9e12800dec214b7ce95e5d4a16a66e37e65776be.tar.gz
sqlite-9e12800dec214b7ce95e5d4a16a66e37e65776be.zip
Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972)
FossilOrigin-Name: ac090f2ab3b5a792c2fdf897e10060f263e0d408
Diffstat (limited to 'src/callback.c')
-rw-r--r--src/callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callback.c b/src/callback.c
index c63b588aa..5847b66d0 100644
--- a/src/callback.c
+++ b/src/callback.c
@@ -13,7 +13,7 @@
** This file contains functions used to access the internal hash tables
** of user defined functions and collation sequences.
**
-** $Id: callback.c,v 1.11 2006/01/11 21:41:22 drh Exp $
+** $Id: callback.c,v 1.12 2006/01/18 16:51:35 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -179,7 +179,7 @@ static CollSeq *findCollSeqEntry(
** to the hash table).
*/
assert( !pDel ||
- (sqlite3ThreadDataReadOnly()->mallocFailed && pDel==pColl) );
+ (sqlite3MallocFailed() && pDel==pColl) );
sqliteFree(pDel);
}
}