]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
delint
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Jun 2023 06:55:48 +0000 (08:55 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Jun 2023 06:55:48 +0000 (08:55 +0200)
pdns/dns_random.cc

index a8eb266c0cd0bfa6096d9a9fb1a57fee8223ee58..357bde31db66b69468a1e607b3a5bb699fd699c3 100644 (file)
@@ -157,7 +157,7 @@ static void dns_random_setup(bool force = false)
 
 #if defined(HAVE_GETRANDOM)
   if (chosen_rng == RNG_GETRANDOM) {
-    char buf;
+    char buf = 0;
     // some systems define getrandom but it does not really work, e.g. because it's
     // not present in kernel.
     if (getrandom(&buf, sizeof(buf), 0) == -1 && errno != EINTR) {