aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2007-08-16 10:36:33 +0000
committerdanielk1977 <danielk1977@noemail.net>2007-08-16 10:36:33 +0000
commitc6cc77d368bfd84c36cdf264d4c6833025de83d6 (patch)
treea3b53d0e7c1fefc1ccd8841e39db45cc46696f47 /src/func.c
parent1e5369531e34650f0c1035072f0795da8496ab1a (diff)
downloadsqlite-c6cc77d368bfd84c36cdf264d4c6833025de83d6.tar.gz
sqlite-c6cc77d368bfd84c36cdf264d4c6833025de83d6.zip
Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)
FossilOrigin-Name: 384d0ca9bc96309e7057e4a2bd4bac5049485e9b
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/func.c b/src/func.c
index c5b2e6cad..b3aa5da80 100644
--- a/src/func.c
+++ b/src/func.c
@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: func.c,v 1.165 2007/08/16 10:09:03 danielk1977 Exp $
+** $Id: func.c,v 1.166 2007/08/16 10:36:34 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1065,7 +1065,7 @@ static void test_destructor(
assert( nArg==1 );
if( sqlite3_value_type(argv[0])==SQLITE_NULL ) return;
len = sqlite3ValueBytes(0, argv[0], ENC(db));
- zVal = sqlite3_malloc(len+3);
+ zVal = sqlite3MallocZero(len+3);
zVal[len] = 0;
zVal[len-1] = 0;
assert( zVal );
@@ -1109,7 +1109,7 @@ static void test_auxdata(
sqlite3_value **argv
){
int i;
- char *zRet = sqlite3_malloc(nArg*2);
+ char *zRet = sqlite3MallocZero(nArg*2);
if( !zRet ) return;
for(i=0; i<nArg; i++){
char const *z = (char*)sqlite3_value_text(argv[i]);