aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-03-26 02:01:04 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-03-26 02:21:50 +0200
commit373728f324b82d305748cfe3c853053fe2a9f761 (patch)
tree92e50af6527e981bcbf6c0fe6c44622bd3861cc7 /src/ast.c
parentcc3cf3353f23dd2f87412d42f8c3d52f873711dd (diff)
downloadek-373728f324b82d305748cfe3c853053fe2a9f761.tar.gz
ek-373728f324b82d305748cfe3c853053fe2a9f761.zip
struct member naming
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast.c b/src/ast.c
index 50cf268..c80dd26 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -2786,7 +2786,7 @@ int ast_call_on(int (*call)(struct ast_node *,
size_t ast_list_len(struct ast_node *node)
{
- size_t count = 1;
+ size_t count = 0;
while (node) {
count++;
node = node->next;