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;