mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 20:21:04 +00:00
exp_expression_with_stack: added check for null pointer after obtaining a mutex in test
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
*/
|
||||
#define ESP_EXECUTE_EXPRESSION_WITH_STACK(lock, stack, stack_size, expression) \
|
||||
({ \
|
||||
if(lock && stack && stack_size) { \
|
||||
if (lock && stack && stack_size) { \
|
||||
uint32_t backup; \
|
||||
xSemaphoreTake(lock, portMAX_DELAY); \
|
||||
StackType_t *top_of_stack = esp_switch_stack_setup(stack, stack_size);\
|
||||
|
Reference in New Issue
Block a user