aboutsummaryrefslogtreecommitdiff
path: root/mptest/mptest.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2015-12-16 22:06:52 +0000
committermistachkin <mistachkin@noemail.net>2015-12-16 22:06:52 +0000
commit8ccdef6be492dd2b1561ec4305ad5e749ada30e3 (patch)
tree4ad825bf9494eb45261030b4276491ac476e97b9 /mptest/mptest.c
parent8c7cd6a9d89c8473273f07edc404ff5425d3e2a4 (diff)
downloadsqlite-8ccdef6be492dd2b1561ec4305ad5e749ada30e3.tar.gz
sqlite-8ccdef6be492dd2b1561ec4305ad5e749ada30e3.zip
Fix some more harmless compiler warnings.
FossilOrigin-Name: 18f531e1cf3c8bb986d912c9c5e3f5698360c93e
Diffstat (limited to 'mptest/mptest.c')
-rw-r--r--mptest/mptest.c6
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);