From 7abf0165180e6ddf268efaf75968516043b38c1d Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@tuebingen.mpg.de>
Date: Wed, 9 Mar 2016 00:21:15 +0100
Subject: [PATCH] i9e: Zero out private pointer on open.

This should not matter at the moment since i9e_open() is only called
once and the i9e_private structure is static, so it's already zeroed
out by the first time the function is called. But since the ie9 API
is supposed to work across multiple open/close cycles, it seems wise
to be conservative here.
---
 interactive.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/interactive.c b/interactive.c
index ce48af32..b5ee7977 100644
--- a/interactive.c
+++ b/interactive.c
@@ -440,6 +440,7 @@ int i9e_open(struct i9e_client_info *ici, struct sched *s)
 {
 	int ret;
 
+	memset(i9ep, 0, sizeof(struct i9e_private));
 	if (!isatty(ici->fds[0]))
 		return -E_I9E_SETUPTERM;
 	ret = mark_fd_nonblocking(ici->fds[0]);
-- 
2.39.5