summaryrefslogtreecommitdiff
path: root/src/htshash.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-08-12 13:46:40 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-08-12 13:46:40 +0000
commit47f23cda403e59d4339c4efd24d97aaa21bfe4a8 (patch)
tree9d2dcfdcd059eac00f04349cf6f60d5ec00af10b /src/htshash.c
parent4e903579b22f3698934294370f076119576041ab (diff)
Additional assert(s)
Diffstat (limited to 'src/htshash.c')
-rw-r--r--src/htshash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/htshash.c b/src/htshash.c
index d740de7..b06b68c 100644
--- a/src/htshash.c
+++ b/src/htshash.c
@@ -131,10 +131,14 @@ static int key_adrfil_equals_generic(void *arg, const char *a_, const char *b_,
// safety
assertf(a_adr != NULL);
assertf(b_adr != NULL);
+ assertf(a_fil != NULL);
+ assertf(b_fil != NULL);
// skip scheme and authentication to the domain (possibly without www.)
ja = normalized ? jump_normalized(a_adr) : jump_identification(a_adr);
jb = normalized ? jump_normalized(b_adr) : jump_identification(b_adr);
+ assertf(ja != NULL);
+ assertf(jb != NULL);
if (strcasecmp(ja, jb) != 0) {
return 0;
}