]> granicus.if.org Git - esp-idf/commit
esp_timer: Add parameter NULL checks to public API
authorAngus Gratton <angus@espressif.com>
Fri, 16 Aug 2019 03:00:21 +0000 (13:00 +1000)
committerAngus Gratton <gus@projectgus.com>
Fri, 16 Aug 2019 03:00:21 +0000 (13:00 +1000)
commit727ffbe90863dc1cf69ff7f2abc6a568df35168e
tree601fcf5203f717864d9645382a4c15db016e3119
parent367ecc2d6006100f795d80006b9b9556507991d0
esp_timer: Add parameter NULL checks to public API

Return ESP_ERR_INVALID_ARG if the handle is NULL, instead of crashing.

As reported via forum https://esp32.com/viewtopic.php?f=13&t=11721&p=47926#p47926
components/esp_common/src/esp_timer.c