summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-09 13:03:12 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-09 13:04:21 (GMT)
commit8bd6f1e59b1663089bf8c81d8d2b14e20010c6e4 (patch) (side-by-side diff)
tree476912540289680daa50b577e2d00d0e1cc59e07 /src
parentca151e4c71e359ab26d192092528938b82cffd18 (diff)
downloadgrecs-8bd6f1e59b1663089bf8c81d8d2b14e20010c6e4.tar.gz
grecs-8bd6f1e59b1663089bf8c81d8d2b14e20010c6e4.tar.bz2
Bugfix.
* src/lookup.c (grecs_value_eq): Allow for NULL values.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/lookup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lookup.c b/src/lookup.c
index b723283..09b7e85 100644
--- a/src/lookup.c
+++ b/src/lookup.c
@@ -61,6 +61,8 @@ _grecs_array_eq(struct grecs_value *a, struct grecs_value *b)
int
grecs_value_eq(struct grecs_value *a, struct grecs_value *b)
{
+ if (a == 0 || b == 0)
+ return a == b;
if (a->type != b->type)
return 0;
switch (a->type) {

Return to:

Send suggestions and report system problems to the System administrator.