runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 4d2a8e66a3c62f47ca7b9e91c49afbeaa0cfc0b1
parent e0f48258bb2ff9f65524530771d4f6f4b2948384
Author: Érico Rolim <erico.erc@gmail.com>
Date:   Sun, 16 Aug 2020 15:12:45 -0300

svlogd.c: Initialize all fields of sockaddr_in.

http://skarnet.org/cgi-bin/archive.cgi?2:mss:1163:201602:gpiglpbjdemlioaeabbn

Diffstat:
Msrc/svlogd.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/svlogd.c b/src/svlogd.c @@ -430,6 +430,7 @@ unsigned int logdir_open(struct logdir *ld, const char *fn) { ld->name =(char*)fn; ld->ppid =0; ld->match ='+'; + ld->udpaddr.sin_family =AF_INET; ld->udpaddr.sin_port =0; ld->udponly =0; while (! stralloc_copys(&ld->prefix, "")) pause_nomem();