Skip to content

Commit

Permalink
correct uncrustify errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Snarskii committed May 23, 2024
1 parent cff6aa1 commit 26e052e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tree_schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ lysc_path_until(const struct lysc_node *node, const struct lysc_node *parent, LY

if ((pathtype == LYSC_PATH_DATA_PATTERN) && (iter->nodetype == LYS_LIST)) {
char *predicates = NULL;

key = NULL;
while ((key = lys_getnext(key, iter, NULL, 0)) && lysc_is_key(key)) {
s = predicates;
Expand All @@ -724,7 +725,7 @@ lysc_path_until(const struct lysc_node *node, const struct lysc_node *parent, LY
asprintf(&predicates, "%s[%s='%%s']", s ? s : "", key->name);
if (s) {
free(s);
};
}
}
s = buffer ? strdup(buffer) : path;
if (buffer) {
Expand Down

0 comments on commit 26e052e

Please sign in to comment.