waitpipe: fix missing initializer from earlier commit
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 18 Jan 2009 10:03:31 +0000 (12:03 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 18 Jan 2009 10:03:31 +0000 (12:03 +0200)
src/misc/objects.c

index fe051fd..da4527c 100644 (file)
@@ -415,7 +415,8 @@ int vlc_object_waitpipe( vlc_object_t *obj )
         assert (internals->pipes[1] == -1);
 
 #ifdef HAVE_EVENTFD
         assert (internals->pipes[1] == -1);
 
 #ifdef HAVE_EVENTFD
-        if ((internals->pipes[0] = eventfd (0, 0)) == -1)
+        internals->pipes[0] = internals->pipes[1] = eventfd (0, 0);
+        if (internals->pipes[0] == -1)
 #endif
         {
             if (pipe (internals->pipes))
 #endif
         {
             if (pipe (internals->pipes))