Skip to content
Snippets Groups Projects
Commit fdc49a4b authored by Daniel Salzman's avatar Daniel Salzman
Browse files

yparser: fix invalid item indentation detection

parent f2013004
No related branches found
No related tags found
No related merge requests found
......@@ -274,6 +274,11 @@ static int check_item(
bool is_id = false;
if (parent != NULL) {
// Check for invalid indentation.
if (parent->item == NULL) {
return KNOT_YP_EINVAL_INDENT;
}
// Check if valid group parent.
if (parent->item->type != YP_TGRP) {
return KNOT_YP_EINVAL_ITEM;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment