Commit 887faff1 authored by Olivier Teulière's avatar Olivier Teulière

* Fixed a segfault (closes #132)

parent fb1b3cf4
......@@ -2,7 +2,7 @@
* netutils.c: various network functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: netutils.c,v 1.78 2003/01/15 23:55:22 massiot Exp $
* $Id: netutils.c,v 1.79 2003/01/27 21:44:39 ipkiss Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
......@@ -174,6 +174,12 @@ int __network_ChannelJoin( vlc_object_t *p_this, int i_channel )
struct timeval delay;
fd_set fds;
if( p_this->p_vlc->p_channel == NULL )
{
msg_Warn( p_this, "channels not initialized" );
return 0;
}
if( p_this->p_vlc->p_channel->i_channel == i_channel )
{
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment