aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-12 06:48:59 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-12 06:48:59 +0300
commit967d4d82ef9d10ecd6b32a29f2b3f2743175a268 (patch)
tree6f4a85f7b87b80d2d24585909cce3b1c4e3a4141 /src
parentf8ca129aaf4876dfa9778c34ed5bd8a669ca22e8 (diff)
downloadgrecs-967d4d82ef9d10ecd6b32a29f2b3f2743175a268.tar.gz
grecs-967d4d82ef9d10ecd6b32a29f2b3f2743175a268.tar.bz2
Allow for NULL targets.
* src/tree.c (grecs_process_ident): Do nothing if target is NULL.
Diffstat (limited to 'src')
-rw-r--r--src/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 405b863..770f660 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -666,13 +666,13 @@ grecs_process_ident(struct grecs_keyword *kwp, grecs_value_t *value,
if (kwp->callback)
kwp->callback(grecs_callback_set_value,
locus,
target,
value,
&kwp->callback_data);
- else if (GRECS_TYPE(kwp->type) == grecs_type_void)
+ else if (GRECS_TYPE(kwp->type) == grecs_type_void || target == NULL)
return;
else if (!value) {
grecs_error(locus, 0, "%s has no value", kwp->ident);
return;
} else if (value->type == GRECS_TYPE_ARRAY) {
grecs_error(locus, 0,

Return to:

Send suggestions and report system problems to the System administrator.