File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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) {
251251 if (attribute->id == ESP_ZB_ZCL_ATTR_BASIC_MANUFACTURER_NAME_ID && attribute->data .type == ESP_ZB_ZCL_ATTR_TYPE_CHAR_STRING && attribute->data .value ) {
252252 zbstring_t *zbstr = (zbstring_t *)attribute->data .value ;
253253 char *_read_manufacturer = (char *) malloc (zbstr->len + 1 );
254- if (_read_manufacturer == nullptr ) {
254+ if (_read_manufacturer == NULL ) {
255255 log_e (" Failed to allocate memory for manufacturer data" );
256256 xSemaphoreGive (lock);
257257 return ;
@@ -264,7 +264,7 @@ void ZigbeeEP::zbReadBasicCluster(const esp_zb_zcl_attribute_t *attribute) {
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 ;
266266 char *_read_model = (char *) malloc (zbstr->len + 1 );
267- if (_read_model == nullptr ) {
267+ if (_read_model == NULL ) {
268268 log_e (" Failed to allocate memory for model data" );
269269 xSemaphoreGive (lock);
270270 return ;
You can’t perform that action at this time.
0 commit comments