commit | 132463932d92afa1192def0740391c95c04dd922 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Fri Sep 07 14:57:41 2018 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Fri Sep 07 14:57:41 2018 +0200 |
tree | fc1b3929334f1e17224bb7f14c76ef7ae1e56a47 | |
parent | 50b7014e1e4138adbdd872a1a3c0b12a785c7455 [diff] |
set BUGFIX invalid return value returned
diff --git a/src/set.c b/src/set.c index a41a2a0..dd37767 100644 --- a/src/set.c +++ b/src/set.c
@@ -142,7 +142,7 @@ API LY_ERR ly_set_rm_index(struct ly_set *set, unsigned int index) { - LY_CHECK_ARG_RET(NULL, set, -1); + LY_CHECK_ARG_RET(NULL, set, LY_EINVAL); LY_CHECK_ERR_RET(((index + 1) > set->number), LOGARG(NULL, set), LY_EINVAL); if (index == set->number - 1) {