diff options
author | David Timber <mieabby@gmail.com> | 2020-09-04 12:24:19 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-09-04 12:24:19 +0930 |
commit | 68bab4b86fef25f835c6b20a178c9b34ff8d2bd7 (patch) | |
tree | b0818b0790734267bde2c87f4b12791311f738d6 /src/resolv.c | |
parent | 3a43c5e6e2afbd0bbcd38d223ce3b41dbe2f5a9f (diff) |
Don't initialise static variables to zero.
Diffstat (limited to 'src/resolv.c')
-rw-r--r-- | src/resolv.c | 2 |
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; |