1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Be careful to initialize the Mem.xDel field to zero for static Mems. (CVS 1671)

FossilOrigin-Name: e17ea666b1eb1df12a1d4d78bda2e025e2aa30bd
This commit is contained in:
drh
2004-06-22 22:04:46 +00:00
parent 7cf8c55add
commit 1b743be858
6 changed files with 15 additions and 13 deletions

View File

@@ -12,7 +12,7 @@
** This file contains routines used to translate between UTF-8,
** UTF-16, UTF-16BE, and UTF-16LE.
**
** $Id: utf.c,v 1.22 2004/06/18 17:10:17 drh Exp $
** $Id: utf.c,v 1.23 2004/06/22 22:04:46 drh Exp $
**
** Notes on UTF-8:
**
@@ -321,6 +321,7 @@ int sqlite3VdbeMemTranslate(Mem *pMem, u8 desiredEnc){
WRITE_UTF8(z, 0);
pMem->n = (z-zOut)-1;
}
assert( pMem->n+1<=len );
}
sqlite3VdbeMemRelease(pMem);