[vlc-devel] commit: waitpipe: fix missing initializer from earlier commit ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 18 11:04:50 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 18 12:03:31 2009 +0200| [abf4e1d2ee1943069d46ea42753c4f7e95d2bba4] | committer: Rémi Denis-Courmont 

waitpipe: fix missing initializer from earlier commit

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=abf4e1d2ee1943069d46ea42753c4f7e95d2bba4
---

 src/misc/objects.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index fe051fd..da4527c 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -415,7 +415,8 @@ int vlc_object_waitpipe( vlc_object_t *obj )
         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))




More information about the vlc-devel mailing list