Skip to content

Commit

Permalink
Merge pull request #16632 from donaldsharp/SA_warnings_from_upstream
Browse files Browse the repository at this point in the history
Sa warnings from upstream
  • Loading branch information
Jafaral authored Aug 22, 2024
2 parents 3d8ccdb + 286e6f8 commit 8f6c7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bgpd/bgp_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ static inline bool gr_mode_matches(enum peer_mode peer_gr_mode,
unsigned int bgp_peer_gr_action(struct peer *peer, enum peer_mode old_state,
enum peer_mode new_state)
{
enum global_mode global_gr_mode = bgp_global_gr_mode_get(peer->bgp);
enum global_mode global_gr_mode;
bool session_reset = true;

if (old_state == new_state)
Expand Down
4 changes: 3 additions & 1 deletion lib/yang.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,8 +1398,10 @@ LY_ERR yang_lyd_trim_xpath(struct lyd_node **root, const char *xpath)
}
}
darr_foreach_i (remove, i) {
if (remove[i] == *root)
if (remove[i] == *root) {
assert(*root);
*root = (*root)->next;
}
lyd_free_tree(remove[i]);
}
darr_free(remove);
Expand Down

0 comments on commit 8f6c7c3

Please sign in to comment.