Make sure a vaiable is always initialised.

This commit is contained in:
Mark Murray 2013-10-12 23:19:01 +00:00
parent 63edd2efc3
commit 4024528a27

View File

@ -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;