summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2014-07-14 22:01:38 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2014-07-23 17:20:30 +0200
commitd45b3e2765ec130d047020d34985e65fa7fb166b (patch)
tree67658a7fea9e8d9ff3f7c98f430811ae963281e2 /common
parent7e4cfbe305c303a30dc6a07cc7514d5a55d8613d (diff)
quic_family_tmpl: Fix "FORWARD_NULL" caught by coverity
Ensure the received bucket is non NULL
Diffstat (limited to 'common')
-rw-r--r--common/quic_family_tmpl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/quic_family_tmpl.c b/common/quic_family_tmpl.c
index 12ef62f..9a434e0 100644
--- a/common/quic_family_tmpl.c
+++ b/common/quic_family_tmpl.c
@@ -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;