- 
                Notifications
    
You must be signed in to change notification settings  - Fork 316
 
diff BUGFIX user-ordered replace operation #2439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for the test
| if (!strcmp(buff, meta_value)) { | ||
| lyd_diff_del_meta(diff_iter, meta_name); | ||
| meta2 = lyd_find_meta(diff->meta, mod, meta_name); | ||
| LY_CHECK_GOTO(lyd_dup_meta_single(meta2, diff_iter, NULL), cleanup); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use lyd_change_meta() instead.
| goto cleanup; | ||
| } | ||
| } | ||
| next_iter: | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No indent and empty line before every label.
No description provided.