logging: shell: fix shell stats null pointer dereference
If CONFIG_SHELL_STATS is disabled, shell->stats is NULL and must not be dereferenced. Guard against it. Fixes #44089 Signed-off-by:Alexej Rempel <Alexej.Rempel@de.eckerle-gruppe.com> (cherry picked from commit 476d1997)
Loading
Please sign in to comment