diff options
author | drh <drh@noemail.net> | 2008-12-10 11:49:06 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-12-10 11:49:06 +0000 |
commit | 092d5efc70c4c1f076ffba873c88a44e277abd76 (patch) | |
tree | f5783bc3764224d3708e5fd3bd9eda8ad53ad423 /src | |
parent | 032ca70167812962560a60063463321710a3a81a (diff) | |
download | sqlite-092d5efc70c4c1f076ffba873c88a44e277abd76.tar.gz sqlite-092d5efc70c4c1f076ffba873c88a44e277abd76.zip |
Use memcpy() rather than "=" to copy a structure, in order to work around
a bug in the XLC compiler on AIX. Ticket #3344. (CVS 6003)
FossilOrigin-Name: 18bbcafc16bb985a7c74e07ffb9c4f28273a7cfd
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; |