File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
251
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
252
zbstring_t *zbstr = (zbstring_t *)attribute->data .value ;
253
253
char *_read_manufacturer = (char *) malloc (zbstr->len + 1 );
254
- if (_read_manufacturer == nullptr ) {
254
+ if (_read_manufacturer == NULL ) {
255
255
log_e (" Failed to allocate memory for manufacturer data" );
256
256
xSemaphoreGive (lock);
257
257
return ;
@@ -264,7 +264,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
264
264
if (attribute->id == ESP_ZB_ZCL_ATTR_BASIC_MODEL_IDENTIFIER_ID && attribute->data .type == ESP_ZB_ZCL_ATTR_TYPE_CHAR_STRING && attribute->data .value ) {
265
265
zbstring_t *zbstr = (zbstring_t *)attribute->data .value ;
266
266
char *_read_model = (char *) malloc (zbstr->len + 1 );
267
- if (_read_model == nullptr ) {
267
+ if (_read_model == NULL ) {
268
268
log_e (" Failed to allocate memory for model data" );
269
269
xSemaphoreGive (lock);
270
270
return ;
You can’t perform that action at this time.
0 commit comments