summaryrefslogtreecommitdiff
path: root/utility/rtos_compatibility_layers/posix/px_sem_open.c
diff options
context:
space:
mode:
authorTiejun Zhou <[email protected]>2022-10-26 23:41:13 +0000
committerTiejun Zhou <[email protected]>2022-10-26 23:41:13 +0000
commit3e8e85cdc1e51f9de577457377a4f9a4f6b9b82f (patch)
tree861c0ab74e5dc5de7509b4b85f5e75dd74457117 /utility/rtos_compatibility_layers/posix/px_sem_open.c
parentb871c33620f9b58a83e92a33f4ca00025e850c7f (diff)
Release 6.2.0v6.2.0_rel
Diffstat (limited to 'utility/rtos_compatibility_layers/posix/px_sem_open.c')
-rw-r--r--utility/rtos_compatibility_layers/posix/px_sem_open.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/utility/rtos_compatibility_layers/posix/px_sem_open.c b/utility/rtos_compatibility_layers/posix/px_sem_open.c
index 72b92027..ca97c4e8 100644
--- a/utility/rtos_compatibility_layers/posix/px_sem_open.c
+++ b/utility/rtos_compatibility_layers/posix/px_sem_open.c
@@ -32,7 +32,7 @@
/* FUNCTION RELEASE */
/* */
/* sem_open PORTABLE C */
-/* 6.1.7 */
+/* 6.2.0 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
@@ -69,7 +69,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 */
/* */
/**************************************************************************/
sem_t * sem_open(const CHAR * name, ULONG oflag, ...)
@@ -110,7 +112,7 @@ mode_t mode;
}
/* Check if semaphore exists. */
- if(semid= posix_find_sem( name))
+ if((semid = posix_find_sem(name)) != NULL)
{
if(semid->unlink_flag ==TX_TRUE )
{