diff options
author | Érico Rolim <erico.erc@gmail.com> | 2020-08-16 15:12:45 -0300 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2024-09-25 23:38:40 +0000 |
commit | 6e273f0a318cc132184d946a764e351f3ec182c9 (patch) | |
tree | cdeb2593b7dea832532ee3cf525a914670086902 /src | |
parent | ebc131e500652109fcb30684c683f4015a580984 (diff) | |
download | runit-6e273f0a318cc132184d946a764e351f3ec182c9.tar.gz runit-6e273f0a318cc132184d946a764e351f3ec182c9.tar.xz runit-6e273f0a318cc132184d946a764e351f3ec182c9.zip |
svlogd.c: Initialize all fields of sockaddr_in.
http://skarnet.org/cgi-bin/archive.cgi?2:mss:1163:201602:gpiglpbjdemlioaeabbn
Diffstat (limited to 'src')
-rw-r--r-- | src/svlogd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svlogd.c b/src/svlogd.c index 033f5f6..66d4006 100644 --- 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(); |