summaryrefslogtreecommitdiffstats
path: root/libpdbg/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpdbg/device.c')
-rw-r--r--libpdbg/device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpdbg/device.c b/libpdbg/device.c
index f81b1b5..3dc301f 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -28,7 +28,6 @@
#include "debug.h"
#include "compiler.h"
-#define zalloc(size) calloc(1, size)
#define prerror printf
#define is_rodata(p) false
@@ -219,7 +218,7 @@ static char *dt_get_path(const struct pdbg_target *node)
if (n->parent || n == node)
len++;
}
- path = zalloc(len + 1);
+ path = calloc(1, len + 1);
assert(path);
p = path + len;
for (n = node; n; n = n->parent) {
OpenPOWER on IntegriCloud