summaryrefslogtreecommitdiff
path: root/attach.c
diff options
context:
space:
mode:
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/attach.c b/attach.c
index 059b510..8137130 100644
--- a/attach.c
+++ b/attach.c
@@ -190,6 +190,7 @@ attach_main(int noerror)
write(1, "\33[H\33[J", 6);
/* Tell the master that we want to attach. */
+ memset(&pkt, 0, sizeof(struct packet));
pkt.type = MSG_ATTACH;
write(s, &pkt, sizeof(struct packet));