summaryrefslogtreecommitdiff
path: root/sem_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sem_destroy.c')
-rw-r--r--sem_destroy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sem_destroy.c b/sem_destroy.c
index 80358f8..041d9d9 100644
--- a/sem_destroy.c
+++ b/sem_destroy.c
@@ -73,7 +73,7 @@ sem_destroy (sem_t * sem)
*/
{
int result = 0;
- sem_t s;
+ sem_t s = NULL;
if (sem == NULL || *sem == NULL)
{