Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(cypher): drop dead-store assignments flagged by cppcheck

Martin Vogel3be9ace6d538
diff --git a/src/cypher/cypher.c b/src/cypher/cypher.c
index 24efd2e45..02d069e14 100644
--- a/src/cypher/cypher.c
+++ b/src/cypher/cypher.c
@@ -575,8 +575,7 @@ static int parse_node(parser_t *p, cbm_node_pattern_t *out) {
ll += w;
}
if (ll >= (int)sizeof(lbuf)) {
- ll = (int)sizeof(lbuf) - SKIP_ONE;
- break;
+ break; /* buffer full */
}
}
out->label = heap_strdup(lbuf);
@@ -3101,8 +3100,7 @@ static void with_proj_key(cbm_return_clause_t *wc, binding_t *b, char *key, size
kl += w;
}
if (kl >= (int)key_sz) {
- kl = (int)key_sz - SKIP_ONE;
- break;
+ break; /* buffer full */
}
}
}