aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-10 22:26:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-10 22:26:16 +0000
commitd980d7e3e434af2cd17ee2b04deaab65164204ce (patch)
tree2ab0069d05e0111f9dda8bc3450d7390d61e4343 /demos/Win32-MinGW/main.c
parent4bb9e7735d4a84e6ddee2b5778906e6cd54db577 (diff)
downloadChibiOS-d980d7e3e434af2cd17ee2b04deaab65164204ce.tar.gz
ChibiOS-d980d7e3e434af2cd17ee2b04deaab65164204ce.tar.bz2
ChibiOS-d980d7e3e434af2cd17ee2b04deaab65164204ce.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1413 35acf78f-673a-0410-8e92-d51de3d6d3f4
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[] = {