From 121f2f888e02a28e7896f84dde019cb320f0b11d Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Tue, 21 Dec 2010 11:12:30 +0000 Subject: Creation of pipework branch --- lib/vio_lines.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/vio_lines.c') diff --git a/lib/vio_lines.c b/lib/vio_lines.c index c2e9c43c..2ac874d1 100644 --- a/lib/vio_lines.c +++ b/lib/vio_lines.c @@ -19,8 +19,7 @@ * Boston, MA 02111-1307, USA. */ -#include - +#include "misc.h" #include "memory.h" #include "zassert.h" @@ -148,6 +147,9 @@ vio_lc_reset(vio_line_control lc, bool free_structure) extern void vio_lc_clear(vio_line_control lc) { + if (lc == NULL) + return ; + qiovec_clear(&lc->qiov) ; lc->pause = 0 ; -- cgit v1.2.3