aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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.