summaryrefslogtreecommitdiffstats
path: root/lib/vio_lines.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vio_lines.c')
-rw-r--r--lib/vio_lines.c6
1 files changed, 4 insertions, 2 deletions
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 <stdint.h>
-
+#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 ;