summaryrefslogtreecommitdiff
path: root/utility/rtos_compatibility_layers/posix/px_mq_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'utility/rtos_compatibility_layers/posix/px_mq_open.c')
-rw-r--r--utility/rtos_compatibility_layers/posix/px_mq_open.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/utility/rtos_compatibility_layers/posix/px_mq_open.c b/utility/rtos_compatibility_layers/posix/px_mq_open.c
index b88c465d..bb041e09 100644
--- a/utility/rtos_compatibility_layers/posix/px_mq_open.c
+++ b/utility/rtos_compatibility_layers/posix/px_mq_open.c
@@ -32,7 +32,7 @@
/* FUNCTION RELEASE */
/* */
/* mq_open PORTABLE C */
-/* 6.1.7 */
+/* 6.2.0 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
@@ -68,7 +68,9 @@
/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
+/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
+/* 10-31-2022 Scott Larson Update comparison with NULL, */
+/* resulting in version 6.2.0 */
/* */
/**************************************************************************/
mqd_t mq_open(const CHAR * mqName, ULONG oflags,...)
@@ -115,7 +117,7 @@ ULONG temp1;
}
/* Check if name is exist. NULL if successful. */
- if(posix_queue = posix_find_queue(mqName))
+ if((posix_queue = posix_find_queue(mqName)) != NULL)
{
if(posix_queue->unlink_flag == TX_TRUE)
{
@@ -172,7 +174,7 @@ ULONG temp1;
case O_RDWR:
case O_NONBLOCK:
/* Check if name is exist. NULL if successful. */
- if(posix_queue = posix_find_queue(mqName))
+ if((posix_queue = posix_find_queue(mqName)) != NULL)
{
if(posix_queue->unlink_flag == TX_TRUE)
{