aboutsummaryrefslogtreecommitdiff
path: root/src/resolv.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-04 12:24:19 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-04 12:24:19 +0930
commit68bab4b86fef25f835c6b20a178c9b34ff8d2bd7 (patch)
treeb0818b0790734267bde2c87f4b12791311f738d6 /src/resolv.c
parent3a43c5e6e2afbd0bbcd38d223ce3b41dbe2f5a9f (diff)
Don't initialise static variables to zero.
Diffstat (limited to 'src/resolv.c')
-rw-r--r--src/resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolv.c b/src/resolv.c
index 6fab7a4..1fb04fa 100644
--- a/src/resolv.c
+++ b/src/resolv.c
@@ -357,7 +357,7 @@ static void resolv_close_sck (prne_resolv_t *ctx, const struct timespec *pause,
}
static bool resolv_ensure_act_dns_fd (prne_resolv_t *ctx) {
- static socklen_t optval_len = sizeof(int);
+ socklen_t optval_len = sizeof(int);
size_t i;
struct pollfd pfs[2];
int optval, pollret;