Make sure a vaiable is always initialised.
This commit is contained in:
parent
63edd2efc3
commit
4024528a27
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user