projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c2ed5
)
added assert to prevent segfault by dereferencing void pointer 'settings'
author
Marc Cromme
<marc@indexdata.dk>
Wed, 11 Apr 2007 11:13:46 +0000
(11:13 +0000)
committer
Marc Cromme
<marc@indexdata.dk>
Wed, 11 Apr 2007 11:13:46 +0000
(11:13 +0000)
src/database.c
patch
|
blob
|
history
diff --git
a/src/database.c
b/src/database.c
index
639e8f2
..
61131a5
100644
(file)
--- a/
src/database.c
+++ b/
src/database.c
@@
-1,4
+1,4
@@
-/* $Id: database.c,v 1.10 2007-04-11 04:33:41 quinn Exp $
+/* $Id: database.c,v 1.11 2007-04-11 11:13:46 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-241,6
+241,7
@@
static int match_criterion(struct setting **settings, struct database_criterion
int database_match_criteria(struct setting **settings, struct database_criterion *cl)
{
+ assert(settings);
if (settings[PZ_ALLOW] && *settings[PZ_ALLOW]->value == '0')
return 0;
for (; cl; cl = cl->next)