aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Win32-MinGW/main.c')
-rw-r--r--demos/Win32-MinGW/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/Win32-MinGW/main.c b/demos/Win32-MinGW/main.c
index 22ea086c3..140f3bd79 100644
--- a/demos/Win32-MinGW/main.c
+++ b/demos/Win32-MinGW/main.c
@@ -42,8 +42,11 @@ void cmd_test(BaseChannel *chp, int argc, char *argv[]) {
}
tp = chThdCreateFromHeap(NULL, TEST_WA_SIZE, chThdGetPriority(),
TestThread, chp);
+ if (tp == NULL) {
+ shellPrintLine(chp, "out of memory");
+ return;
+ }
chThdWait(tp);
-// TestThread(chp);
}
static const ShellCommand commands[] = {