[vlc-commits] Fix assignment instead of compare

Rémi Duraffort git at videolan.org
Sat Jul 13 09:46:07 CEST 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 09:44:29 2013 +0200| [4c2353ede409c1ef413fa6169a703ab0322ee0de] | committer: Rémi Duraffort

Fix assignment instead of compare

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

 src/network/rootbind.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network/rootbind.c b/src/network/rootbind.c
index f04bd82..0d5d635 100644
--- a/src/network/rootbind.c
+++ b/src/network/rootbind.c
@@ -91,7 +91,7 @@ static int recv_fd (int p)
          cmsg = CMSG_NXTHDR (&hdr, cmsg))
     {
         if ((cmsg->cmsg_level == SOL_SOCKET)
-         && (cmsg->cmsg_type = SCM_RIGHTS)
+         && (cmsg->cmsg_type == SCM_RIGHTS)
          && (cmsg->cmsg_len >= CMSG_LEN (sizeof (fd))))
         {
             memcpy (&fd, CMSG_DATA (cmsg), sizeof (fd));



More information about the vlc-commits mailing list