arm: cortex-m: initialise ptr_esf in get_esf() in fault.c.

This was producing a -Wsometimes-uninitialized warning.

Signed-off-by: Chris Reed <chris.reed@arm.com>
This commit is contained in:
Chris Reed 2021-10-13 15:05:25 -05:00 committed by Anas Nashif
commit 6d2b91461b

View file

@ -849,7 +849,7 @@ static inline z_arch_esf_t *get_esf(uint32_t msp, uint32_t psp, uint32_t exc_ret
bool *nested_exc)
{
bool alternative_state_exc = false;
z_arch_esf_t *ptr_esf;
z_arch_esf_t *ptr_esf = NULL;
*nested_exc = false;