diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbemem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbemem.c b/src/vdbemem.c index aa746cb19..4f9a9cff2 100644 --- a/src/vdbemem.c +++ b/src/vdbemem.c @@ -15,7 +15,7 @@ ** only within the VDBE. Interface routines refer to a Mem using the ** name sqlite_value ** -** $Id: vdbemem.c,v 1.130 2008/12/09 02:51:24 drh Exp $ +** $Id: vdbemem.c,v 1.131 2008/12/10 11:49:06 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -255,7 +255,7 @@ int sqlite3VdbeMemFinalize(Mem *pMem, FuncDef *pFunc){ pFunc->xFinalize(&ctx); assert( 0==(pMem->flags&MEM_Dyn) && !pMem->xDel ); sqlite3DbFree(pMem->db, pMem->zMalloc); - *pMem = ctx.s; + memcpy(pMem, &ctx.s, sizeof(ctx.s)); rc = (ctx.isError?SQLITE_ERROR:SQLITE_OK); } return rc; |