aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsetup.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-04-27 00:43:30 +0200
committerMattias Andrée <maandree@kth.se>2016-04-27 00:43:30 +0200
commit54a9d9a38a6fd9c4ee7c508a168c1f78391644cb (patch)
tree391c61cc6537a90bf29bca0a9cde31de014db546 /src/zsetup.c
parentzstr: add new parameter, n: the known limit out the length of the output (diff)
downloadlibzahl-54a9d9a38a6fd9c4ee7c508a168c1f78391644cb.tar.gz
libzahl-54a9d9a38a6fd9c4ee7c508a168c1f78391644cb.tar.bz2
libzahl-54a9d9a38a6fd9c4ee7c508a168c1f78391644cb.tar.xz
Fix possible memory in zstr on failure
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zsetup.c')
-rw-r--r--src/zsetup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zsetup.c b/src/zsetup.c
index 212a1e9..aebef32 100644
--- a/src/zsetup.c
+++ b/src/zsetup.c
@@ -18,6 +18,7 @@ size_t libzahl_pool_alloc[sizeof(size_t) * 8];
struct zahl **libzahl_temp_stack;
struct zahl **libzahl_temp_stack_head;
struct zahl **libzahl_temp_stack_end;
+void *libzahl_temp_allocation = 0;
void