aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-06-06 08:19:05 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-06-06 08:19:54 +0300
commita0c096190fa57b12b9b95ada70f51cab402c74c7 (patch)
tree0735abe6b213601928ca9558b46a9abd1ba74a7a /src
parent806485a57fb37784e3e1789fce829a2bac390d99 (diff)
downloadgrecs-a0c096190fa57b12b9b95ada70f51cab402c74c7.tar.gz
grecs-a0c096190fa57b12b9b95ada70f51cab402c74c7.tar.bz2
Fix previous commit
* src/tree.c (find_keyword): Fix precedence in the conditional.
Diffstat (limited to 'src')
-rw-r--r--src/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c
index 27a6f21..2afe899 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -311,5 +311,5 @@ find_keyword(struct grecs_keyword *cursect, grecs_node_t *node)
if (kwp->callback
- || node->down
+ || (node->down
? kwp->type == grecs_type_section
- : kwp->type != grecs_type_section)
+ : kwp->type != grecs_type_section))
return kwp;

Return to:

Send suggestions and report system problems to the System administrator.