Skip to content
Commit 305ba26c authored by Dan Kalowsky's avatar Dan Kalowsky Committed by Carles Cufí
Browse files

subsys/shell: check for shell context before accessing it



The ASSERT order is backwards, where the shell->ctx is being accessed
before it is being checked as valid.  Moving the check for the
shell->ctx to before the using it.

Signed-off-by: default avatarDan Kalowsky <dkalowsky@amperecomputing.com>
parent 3633860f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment