From 6129e4c82ae072ef27c812f360b49772c66d084a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 11 Nov 2006 00:08:08 +0000 Subject: Assert presence of the buffer, just to avoid getting 'Bad address' errors later on. CVS patchset: 8371 CVS date: 2006/11/11 00:08:08 --- src/xine-engine/io_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xine-engine/io_helper.c b/src/xine-engine/io_helper.c index 3e72ed47c..ad36c565e 100644 --- a/src/xine-engine/io_helper.c +++ b/src/xine-engine/io_helper.c @@ -333,6 +333,8 @@ static off_t xio_rw_abort(xine_stream_t *stream, int fd, int cmd, char *buf, off xine_cfg_entry_t cfgentry; unsigned int timeout; + _x_assert(buf != NULL); + if ((cmd == XIO_TCP_READ) || (cmd == XIO_FILE_READ)) { state = XIO_READ_READY; } else { -- cgit v1.2.3