mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 05:26:09 +00:00
quic_family_tmpl: Fix "FORWARD_NULL" caught by coverity
Ensure the received bucket is non NULL
This commit is contained in:
parent
7e4cfbe305
commit
d45b3e2765
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user