commit | 3c2dd6ccd0b1ba50ff972a2b6ee16b40d61a16ba | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Nov 06 17:38:55 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Mon Nov 09 10:20:10 2020 +0100 |
tree | 5308d45ab103998f91ee1e7a63c4d1ea69df09a2 | |
parent | c2058438e90364f7c0b4ef9e8d4b9027ad93eac2 [diff] [blame] |
diff MAINTENANCE safety check for coverity
diff --git a/src/diff.c b/src/diff.c index d456a64..7285211 100644 --- a/src/diff.c +++ b/src/diff.c
@@ -583,6 +583,7 @@ if (op == LYD_DIFF_OP_DELETE) { ret = lyd_diff_add(iter_first, op, orig_default, orig_value, NULL, NULL, NULL, diff); } else { + assert(match_second); ret = lyd_diff_add(match_second, op, orig_default, orig_value, NULL, NULL, NULL, diff); }