Skip to content

Commit 8e03dd0

Browse files
SuGliderCopilot
andauthored
fix(zigbee_ep): fix variable scope
Co-authored-by: Copilot <[email protected]>
1 parent d113ba2 commit 8e03dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/Zigbee/src/ZigbeeEP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
263263
}
264264
if (attribute->id == ESP_ZB_ZCL_ATTR_BASIC_MODEL_IDENTIFIER_ID && attribute->data.type == ESP_ZB_ZCL_ATTR_TYPE_CHAR_STRING && attribute->data.value) {
265265
zbstring_t *zbstr = (zbstring_t *)attribute->data.value;
266-
char *_read_model = (char *)malloc(zbstr->len + 1);
266+
_read_model = (char *)malloc(zbstr->len + 1);
267267
if (_read_model == NULL) {
268268
log_e("Failed to allocate memory for model data");
269269
xSemaphoreGive(lock);

0 commit comments

Comments
 (0)