summaryrefslogtreecommitdiff
path: root/lib/bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bluetooth.c')
-rw-r--r--lib/bluetooth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bluetooth.c b/lib/bluetooth.c
index 0aecb50e1..84e40c819 100644
--- a/lib/bluetooth.c
+++ b/lib/bluetooth.c
@@ -173,6 +173,11 @@ void *bt_malloc(size_t size)
return malloc(size);
}
+void *bt_malloc0(size_t size)
+{
+ return calloc(size, 1);
+}
+
void bt_free(void *ptr)
{
free(ptr);