From 4024528a2799995258faf6587975ade9a2ec3779 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sat, 12 Oct 2013 23:19:01 +0000 Subject: [PATCH] Make sure a vaiable is always initialised. --- sys/dev/random/random_adaptors.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/random/random_adaptors.c b/sys/dev/random/random_adaptors.c index 233600fed884..4f5ad2c1ebe1 100644 --- a/sys/dev/random/random_adaptors.c +++ b/sys/dev/random/random_adaptors.c @@ -129,6 +129,7 @@ random_adaptor_choose(struct random_adaptor **adaptor) */ sx_slock(&adaptors_lock); + ramax = NULL; LIST_FOREACH(rppi, &adaptors, entries) { if (rppi->rsp->priority >= primax) { ramax = rppi;