vlc | branch: master | Thomas Guillem <[email protected]> | Fri Feb  8 08:40:43 
2019 +0100| [4533d372ac4961b73be55a1534a0ca581106f391] | committer: Thomas 
Guillem

http: test: fix wrong int check

Regression from 8ab3c59baab72a24b3ce9641cdd7dd82443be0b1

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

 modules/access/http/tunnel_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/http/tunnel_test.c 
b/modules/access/http/tunnel_test.c
index 353caf123b..18287f109a 100644
--- a/modules/access/http/tunnel_test.c
+++ b/modules/access/http/tunnel_test.c
@@ -150,7 +150,7 @@ int main(void)
     int *lfd = malloc(sizeof (int));
     assert(lfd != NULL);
     *lfd = server_socket(&port);
-    if (lfd == -1)
+    if (*lfd == -1)
         return 77;
 
     if (asprintf(&url, "http://Aladdin:open%%20sesame@[::1]:%u";, port) < 0)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to