quic_family_tmpl: Fix "FORWARD_NULL" caught by coverity

Ensure the received bucket is non NULL
This commit is contained in:
Fabiano Fidêncio 2014-07-14 22:01:38 +02:00
parent 7e4cfbe305
commit d45b3e2765

View File

@ -72,6 +72,8 @@ static void FNAME(update_model)(CommonState *state, s_bucket * const bucket,
const BYTE curval)
{
spice_static_assert(BPC >= 1);
spice_return_if_fail (bucket != NULL);
const unsigned int bpp = BPC;
COUNTER * const pcounters = bucket->pcounters;
unsigned int i;