summaryrefslogtreecommitdiff
path: root/src/vector.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-18 08:47:23 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-18 08:47:23 +0200
commite9d4d3c505114114366cc0102ee92ce2e0d779dc (patch)
treeba4125df88d405f172c76f6eab00d6299d408bc1 /src/vector.c
parent58f6ac62aaf38b0122e304a09c2a589743a7e215 (diff)
downloadcalcurse-e9d4d3c505114114366cc0102ee92ce2e0d779dc.zip
Do not use malloc() or xmalloc()
Use mem_malloc() instead which automatically picks the right implementation depending on whether memory debugging is enabled or not. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/vector.c')
-rw-r--r--src/vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c
index c1bab96..4e9713f 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -43,7 +43,7 @@ void vector_init(vector_t *v, unsigned size)
{
v->count = 0;
v->size = size;
- v->data = malloc(size * sizeof(void *));
+ v->data = mem_malloc(size * sizeof(void *));
}
/*