commit | 016569ce7f4c63a2e36ed734ec72d08bb008d7e0 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 04 15:50:02 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 04 16:54:23 2021 +0100 |
tree | 7a8eb200f2df2f68d72ee5ecf469156a54210896 | |
parent | e7010dcf921fb8fee7c1bafd42426fa0bf42cf09 [diff] |
hash table CHANGE accept null context Because lydic_remove in old libyang does.
diff --git a/src/hash_table.c b/src/hash_table.c index 7c1266a..e1a537e 100644 --- a/src/hash_table.c +++ b/src/hash_table.c
@@ -165,7 +165,7 @@ struct dict_rec rec, *match = NULL; char *val_p; - if (!value) { + if (!ctx || !value) { return LY_SUCCESS; }