summaryrefslogtreecommitdiffstats
path: root/lib/vio_lines.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2010-12-21 11:12:30 +0000
committerChris Hall <chris.hall@highwayman.com>2010-12-21 11:12:30 +0000
commit121f2f888e02a28e7896f84dde019cb320f0b11d (patch)
tree99c3913759b80894b1cb83a508036223b9c98f5a /lib/vio_lines.c
parentd475a0f198f880595eb27e44008e5de3aad25d73 (diff)
downloadquagga-121f2f888e02a28e7896f84dde019cb320f0b11d.tar.bz2
quagga-121f2f888e02a28e7896f84dde019cb320f0b11d.tar.xz
Creation of pipework branch
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 ;