[vlc-commits] Fix assignment instead of compare

Rémi Duraffort git at videolan.org
Sat Jul 13 15:31:26 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 13 09:44:29 2013 +0200| [0e33adb66bfbe852483310d6b92a553d1bf6e40a] | committer: Jean-Baptiste Kempf

Fix assignment instead of compare

(cherry picked from commit 4c2353ede409c1ef413fa6169a703ab0322ee0de)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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