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>
Loading
Please sign in to comment