summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2013-10-20 22:11:01 (GMT)
committerJason Evans <jasone@canonware.com>2013-10-20 22:11:01 (GMT)
commitd504477935151ed7befb77930f3ca64fa4d4102b (patch)
treeaa966adf963c9bd4fc52ac9163a7a8fcc6cbf6b0 /src
parent7b65180b32558fc4f2bc7b6ac5602f306ed3a014 (diff)
downloadjemalloc-d504477935151ed7befb77930f3ca64fa4d4102b.zip
jemalloc-d504477935151ed7befb77930f3ca64fa4d4102b.tar.gz
jemalloc-d504477935151ed7befb77930f3ca64fa4d4102b.tar.bz2
Fix a compiler warning.
Fix a compiler warning in chunk_record() that was due to reading node rather than xnode. In practice this did not cause any correctness issue, but dataflow analysis in some compilers cannot tell that node and xnode are always equal in cases that the read is reached.
Diffstat (limited to 'src')
-rw-r--r--src/chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk.c b/src/chunk.c
index aef3fed..b17f43f 100644
--- a/src/chunk.c
+++ b/src/chunk.c
@@ -294,7 +294,7 @@ label_return:
if (xnode != NULL)
base_node_dealloc(xnode);
if (xprev != NULL)
- base_node_dealloc(prev);
+ base_node_dealloc(xprev);
}
void