summaryrefslogtreecommitdiffabout
path: root/src
Side-by-side diff
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-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
@@ -306,15 +306,15 @@ find_keyword(struct grecs_keyword *cursect, grecs_node_t *node)
char const *msg;
for (kwp = cursect->kwd; kwp->ident; kwp++) {
if (strcmp(kwp->ident, node->ident) == 0) {
found = kwp;
if (kwp->callback
- || node->down
+ || (node->down
? kwp->type == grecs_type_section
- : kwp->type != grecs_type_section)
+ : kwp->type != grecs_type_section))
return kwp;
}
}
if (found) {
if (found->type == grecs_type_section) {
msg = N_("section keyword used as a scalar");

Return to:

Send suggestions and report system problems to the System administrator.