diff options
author | drh <drh@noemail.net> | 2016-01-01 13:25:06 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-01-01 13:25:06 +0000 |
commit | 8de1d77c60af1fbac5cc7eb7eb84efa3e43a320b (patch) | |
tree | b2968afbe57bd3f1d1305f5a2241f575cca3b909 /mptest/mptest.c | |
parent | 173b60999eb7b2fda450df311e286539fcd2b854 (diff) | |
parent | a660caf2f01c99ef48085c731e200b5a2fa575b5 (diff) | |
download | sqlite-8de1d77c60af1fbac5cc7eb7eb84efa3e43a320b.tar.gz sqlite-8de1d77c60af1fbac5cc7eb7eb84efa3e43a320b.zip |
Merge the latest enhancements from trunk.
FossilOrigin-Name: c0be246a740c8f33a7c07e1414688364dee56ece
Diffstat (limited to 'mptest/mptest.c')
-rw-r--r-- | mptest/mptest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mptest/mptest.c b/mptest/mptest.c index 5a9c8bf6b..b29ebdc9e 100644 --- a/mptest/mptest.c +++ b/mptest/mptest.c @@ -422,9 +422,9 @@ static void stringAppend(String *p, const char *z, int n){ if( n<0 ) n = (int)strlen(z); if( p->n+n>=p->nAlloc ){ int nAlloc = p->nAlloc*2 + n + 100; - char *z = sqlite3_realloc(p->z, nAlloc); - if( z==0 ) fatalError("out of memory"); - p->z = z; + char *zNew = sqlite3_realloc(p->z, nAlloc); + if( zNew==0 ) fatalError("out of memory"); + p->z = zNew; p->nAlloc = nAlloc; } memcpy(p->z+p->n, z, n); |