[vlc-devel] commit: Document the assertion ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Sep 16 22:25:13 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Sep 16 23:26:30 2008 +0300| [33a5fa078c4ffc59d3e75333964cc2868a17742a] | committer: Rémi Denis-Courmont 

Document the assertion

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

 modules/access/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 2b883cc..98d33b6 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1020,7 +1020,7 @@ static int Connect( access_t *p_access, int64_t i_tell )
     p_access->info.b_eof  = false;
 
     /* Open connection */
-    assert( p_sys->fd == -1 );
+    assert( p_sys->fd == -1 ); /* No open sockets (leaking fds is BAD) */
     p_sys->fd = net_ConnectTCP( p_access, srv.psz_host, srv.i_port );
     if( p_sys->fd == -1 )
     {




More information about the vlc-devel mailing list