aboutsummaryrefslogtreecommitdiffstats
path: root/os/common
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-10-27 13:34:22 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-10-27 13:34:22 +0000
commitb140ed8c611d2e345fc70afc993495d1f31dc69a (patch)
treebc7c4b0d6376574fd218e2d75d48ecbed9885db1 /os/common
parent3f72c7787eb9ad2e3bf846b7184fe283ab8a19c2 (diff)
downloadChibiOS-b140ed8c611d2e345fc70afc993495d1f31dc69a.tar.gz
ChibiOS-b140ed8c611d2e345fc70afc993495d1f31dc69a.tar.bz2
ChibiOS-b140ed8c611d2e345fc70afc993495d1f31dc69a.zip
Added test case for dynamic buffers, fixed a problem.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10900 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common')
-rw-r--r--os/common/oslib/src/chfactory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/common/oslib/src/chfactory.c b/os/common/oslib/src/chfactory.c
index 687eec393..74e80e528 100644
--- a/os/common/oslib/src/chfactory.c
+++ b/os/common/oslib/src/chfactory.c
@@ -138,7 +138,7 @@ static dyn_element_t *dyn_create_object_heap(const char *name,
/* Allocating space for the new buffer object.*/
dep = (dyn_element_t *)chHeapAlloc(NULL, size);
- if (dep) {
+ if (dep == NULL) {
return NULL;
}