return early from os_reportExit if report stack is not initialized

Signed-off-by: Jeroen Koekkoek <jeroen@koekkoek.nl>
This commit is contained in:
Jeroen Koekkoek 2018-08-06 11:54:21 +02:00
parent aa9947a320
commit 657325707c

View file

@ -426,6 +426,9 @@ void os_reportExit(void)
{ {
char *name; char *name;
os_reportStack reports; os_reportStack reports;
if (!inited) {
return;
}
reports = os_threadMemGet(OS_THREAD_REPORT_STACK); reports = os_threadMemGet(OS_THREAD_REPORT_STACK);
if (reports) { if (reports) {