diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-27 03:13:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-27 03:13:50 +0000 |
commit | 9a0be89531cef3fb41ac68412693529607dd0ca3 (patch) | |
tree | a6e2ac51a93bff32a1c810c633bf078401719281 /nuttx/graphics/nxmu/nxmu_sendserver.c | |
parent | ebdc6a36e8185325a98c45527b2c970aae5a59e2 (diff) | |
download | px4-firmware-9a0be89531cef3fb41ac68412693529607dd0ca3.tar.gz px4-firmware-9a0be89531cef3fb41ac68412693529607dd0ca3.tar.bz2 px4-firmware-9a0be89531cef3fb41ac68412693529607dd0ca3.zip |
Correct some bad parameter checking
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5197 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxmu/nxmu_sendserver.c')
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_sendserver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/graphics/nxmu/nxmu_sendserver.c b/nuttx/graphics/nxmu/nxmu_sendserver.c index 7007b81da..03ece4e7f 100644 --- a/nuttx/graphics/nxmu/nxmu_sendserver.c +++ b/nuttx/graphics/nxmu/nxmu_sendserver.c @@ -93,9 +93,9 @@ int nxmu_sendserver(FAR struct nxfe_conn_s *conn, FAR const void *msg, /* Sanity checking */ #ifdef CONFIG_DEBUG - if (!conn || conn->cwrmq) + if (!conn || !conn->cwrmq) { - errno = EINVAL; + set_errno(EINVAL); return ERROR; } #endif |