diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-12 06:48:59 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-12 06:48:59 +0300 |
commit | 967d4d82ef9d10ecd6b32a29f2b3f2743175a268 (patch) | |
tree | 6f4a85f7b87b80d2d24585909cce3b1c4e3a4141 /src | |
parent | f8ca129aaf4876dfa9778c34ed5bd8a669ca22e8 (diff) | |
download | grecs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -669,7 +669,7 @@ grecs_process_ident(struct grecs_keyword *kwp, grecs_value_t *value, | |||
669 | target, | 669 | target, |
670 | value, | 670 | value, |
671 | &kwp->callback_data); | 671 | &kwp->callback_data); |
672 | else if (GRECS_TYPE(kwp->type) == grecs_type_void) | 672 | else if (GRECS_TYPE(kwp->type) == grecs_type_void || target == NULL) |
673 | return; | 673 | return; |
674 | else if (!value) { | 674 | else if (!value) { |
675 | grecs_error(locus, 0, "%s has no value", kwp->ident); | 675 | grecs_error(locus, 0, "%s has no value", kwp->ident); |