aboutsummaryrefslogtreecommitdiff
path: root/core/runit/patches/clearmem.patch
blob: 2660c5f9e24cacc600698804f24af120cb6650ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Taken from void
diff -Naur runit-2.1.2/src/svlogd.c runit-2.1.2/src/svlogd.c
--- runit-2.1.2/src/svlogd.c
+++ runit-2.1.2/src/svlogd.c
@@ -705,6 +705,7 @@
   coe(fdwdir);
   dir =(struct logdir*)alloc(dirn *sizeof(struct logdir));
   if (! dir) die_nomem();
+  memset(dir, 0, dirn * sizeof(struct logdir));
   for (i =0; i < dirn; ++i) {
     dir[i].fddir =-1; dir[i].fdcur =-1;
     dir[i].btmp =(char*)alloc(buflen *sizeof(char));