summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-06-08 22:17:18 +0000
committermidipix <writeonce@midipix.org>2020-06-08 22:17:18 +0000
commite47d7f719213e41ff5864e73fa60edc9b7c4d066 (patch)
tree5325dc9bd091408b13c7e50cbbee4c3fa2f97fbd
parent147cc592979cb7cab435f0227f671c23bf6449c2 (diff)
downloaddalist-e47d7f719213e41ff5864e73fa60edc9b7c4d066.tar.bz2
dalist-e47d7f719213e41ff5864e73fa60edc9b7c4d066.tar.xz
dalist_alloc(): explicitly reset the address variable (oversight).
-rw-r--r--src/dalist_memfn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dalist_memfn.c b/src/dalist_memfn.c
index 0b3199d..1176875 100644
--- a/src/dalist_memfn.c
+++ b/src/dalist_memfn.c
@@ -165,6 +165,7 @@ static void * __cdecl dalist_alloc(struct dalist_ex * dlist)
pmemfn = dalist_memfn_internal;
/* allocate: try */
+ addr = 0;
fnode = 0;
ret = pmemfn(dlist,&addr,&alloc_size);