aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitlbee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 2eecf982..9f79d544 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -166,7 +166,7 @@ gboolean bitlbee_io_current_client_read( GIOChannel *source, GIOCondition condit
}
/* Very naughty, go read the RFCs! >:) */
- if( strlen( irc->readbuffer ) > 1024 )
+ if( irc->readbuffer && ( strlen( irc->readbuffer ) > 1024 ) )
{
log_message( LOGLVL_ERROR, "Maximum line length exceeded." );
irc_free( irc );