aboutsummaryrefslogtreecommitdiff
path: root/fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fileops.c')
-rw-r--r--fileops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fileops.c b/fileops.c
index 17fbe47..169d49e 100644
--- a/fileops.c
+++ b/fileops.c
@@ -25,6 +25,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+#include <string.h>
#include "common.h"
#include "fileops.h"
@@ -56,5 +57,6 @@ void input_close(struct instance *i)
{
munmap(i->in.p, i->in.size);
close(i->in.fd);
+ memset(&i->in, 0, sizeof(i->in));
}