We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4681be4 commit d113ba2Copy full SHA for d113ba2
libraries/Zigbee/src/ZigbeeEP.cpp
@@ -250,7 +250,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
250
/* Basic cluster attributes */
251
if (attribute->id == ESP_ZB_ZCL_ATTR_BASIC_MANUFACTURER_NAME_ID && attribute->data.type == ESP_ZB_ZCL_ATTR_TYPE_CHAR_STRING && attribute->data.value) {
252
zbstring_t *zbstr = (zbstring_t *)attribute->data.value;
253
- char *_read_manufacturer = (char *)malloc(zbstr->len + 1);
+ _read_manufacturer = (char *)malloc(zbstr->len + 1);
254
if (_read_manufacturer == NULL) {
255
log_e("Failed to allocate memory for manufacturer data");
256
xSemaphoreGive(lock);
0 commit comments