2003-03-01 Roland McGrath <roland@redhat.com>
authorroland <roland>
Sat, 1 Mar 2003 22:37:12 +0000 (22:37 +0000)
committerroland <roland>
Sat, 1 Mar 2003 22:37:12 +0000 (22:37 +0000)
* sem_open.c (sem_open): Braino fix.

nptl/sem_open.c

index 111b5f5..2bfea63 100644 (file)
@@ -126,8 +126,8 @@ sem_t *
 sem_open (const char *name, int oflag, ...)
 {
   char *finalname;
-  size_t namelen = SEM_FAILED;
-  sem_t *result;
+  size_t namelen;
+  sem_t *result = SEM_FAILED;
   int fd;
 
   /* Determine where the shmfs is mounted.  */