summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxmu/nx_block.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-27 03:13:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-27 03:13:50 +0000
commit71edd43b4ed83fbb8b5d6cf84e6ce1bd3ea289ad (patch)
treea6e2ac51a93bff32a1c810c633bf078401719281 /nuttx/graphics/nxmu/nx_block.c
parent2ee480b59e7f6d641dde0ec63254aaa8a87401c2 (diff)
downloadpx4-nuttx-71edd43b4ed83fbb8b5d6cf84e6ce1bd3ea289ad.tar.gz
px4-nuttx-71edd43b4ed83fbb8b5d6cf84e6ce1bd3ea289ad.tar.bz2
px4-nuttx-71edd43b4ed83fbb8b5d6cf84e6ce1bd3ea289ad.zip
Correct some bad parameter checking
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5197 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxmu/nx_block.c')
-rw-r--r--nuttx/graphics/nxmu/nx_block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxmu/nx_block.c b/nuttx/graphics/nxmu/nx_block.c
index 2f069f096..3a051f9d7 100644
--- a/nuttx/graphics/nxmu/nx_block.c
+++ b/nuttx/graphics/nxmu/nx_block.c
@@ -111,8 +111,8 @@ int nx_block(NXWINDOW hwnd, FAR void *arg)
#ifdef CONFIG_DEBUG
if (!hwnd)
{
- errno = EINVAL;
- return NULL;
+ set_errno(EINVAL);
+ return ERROR;
}
#endif