commit | 305ba26c6e6b646e7b6c6fa602d9dd04f730de1d | [log] [tgz] |
---|---|---|
author | Dan Kalowsky <dkalowsky@amperecomputing.com> | Thu Feb 18 17:02:51 2021 -0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Mon Feb 22 15:20:37 2021 +0100 |
tree | 8dcd2857f2653ae1da14501d8f8e710f63324344 | |
parent | 3633860ff169ca937384e8094d90e668a7b25f48 [diff] |
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: Dan Kalowsky <dkalowsky@amperecomputing.com>