diff options
author | Peter Stephenson <pws@zsh.org> | 2014-06-09 09:50:37 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2014-06-09 09:50:37 +0100 |
commit | 6336347c9e02ebae565b2d62987d1052bcba5567 (patch) | |
tree | c57790ed50fa12ab04733286bd10990d59fb13d0 /Src/mem.c | |
parent | 2ba4aa275e548ae9d4406e3bc8008bdfa1ce29eb (diff) | |
parent | 4f4d2b8247ef08e34fe73d91c0a8d8a2eb1f18c7 (diff) | |
download | zsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar.gz zsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar.xz zsh-6336347c9e02ebae565b2d62987d1052bcba5567.zip |
fix my own merge conflict with grammar changes
Diffstat (limited to 'Src/mem.c')
-rw-r--r-- | Src/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/mem.c b/Src/mem.c index a7f11a62b..f19817723 100644 --- a/Src/mem.c +++ b/Src/mem.c @@ -1508,7 +1508,7 @@ zsfree(char *p) MALLOC_RET_T realloc(MALLOC_RET_T p, MALLOC_ARG_T size) { - struct m_hdr *m = (struct m_hdr *)(((char *)p) - M_ISIZE), *mp, *mt; + struct m_hdr *m = (struct m_hdr *)(((char *)p) - M_ISIZE), *mt; char *r; int i, l = 0; @@ -1524,10 +1524,10 @@ realloc(MALLOC_RET_T p, MALLOC_ARG_T size) /* check if we are reallocating a small block, if we do, we have to compute the size of the block from the sort of block it is in */ for (i = 0; i < M_NSMALL; i++) { - for (mp = NULL, mt = m_small[i]; + for (mt = m_small[i]; mt && (((char *)mt) > ((char *)p) || (((char *)mt) + mt->len) < ((char *)p)); - mp = mt, mt = mt->next); + mt = mt->next); if (mt) { l = M_BSLEN(mt->len); |