From ed018509261eea7ba5daccf44dacbd5811451ebb Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Fri, 14 Aug 2020 01:33:50 -0500 Subject: [PATCH] Initialize new map --- RGBController/RGBController_E131.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RGBController/RGBController_E131.cpp b/RGBController/RGBController_E131.cpp index 45275580..7e8ca353 100644 --- a/RGBController/RGBController_E131.cpp +++ b/RGBController/RGBController_E131.cpp @@ -70,7 +70,7 @@ RGBController_E131::RGBController_E131(std::vector device_list) if(devices[device_idx].type == ZONE_TYPE_MATRIX) { unsigned int led_idx = 0; - matrix_map_type * new_map; + matrix_map_type * new_map = new matrix_map_type; new_map->width = devices[device_idx].matrix_width; new_map->height = devices[device_idx].matrix_height;