From b178f6a6e6ba2d46684742b86f9c8a20a964af87 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 23 Nov 2018 18:09:51 +0100 Subject: [PATCH] daemon: fix build --- platform/daemon/src/rfcomm_service_db_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/daemon/src/rfcomm_service_db_memory.c b/platform/daemon/src/rfcomm_service_db_memory.c index c8b48e47e..7f3b98946 100644 --- a/platform/daemon/src/rfcomm_service_db_memory.c +++ b/platform/daemon/src/rfcomm_service_db_memory.c @@ -78,7 +78,7 @@ uint8_t rfcomm_service_db_channel_for_service(const char *serviceName){ if (!newItem) return 0; - memset(new, 0, sizeof(db_mem_service_t)); + memset(newItem, 0, sizeof(db_mem_service_t)); strncpy(newItem->service_name, serviceName, MAX_NAME_LEN); newItem->service_name[MAX_NAME_LEN] = 0; newItem->channel = max_channel;