commit | 1d4f0a6bef2386237b4e9602b3c2643d749a1544 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Wed Apr 07 11:01:06 2021 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Apr 07 11:01:06 2021 +0200 |
tree | d90fb2c0de896524a2a5a41a6bfb43c2dc38725c | |
parent | be51c94825ea2e35fe4312f36f22af641774c893 [diff] |
schema BUGFIX handling empty array of features Beasides NULL, accept also the array of size 1 with the NULL pointer.
diff --git a/src/schema_features.c b/src/schema_features.c index 3bdd8d4..1e7c7fd 100644 --- a/src/schema_features.c +++ b/src/schema_features.c
@@ -522,7 +522,7 @@ uint32_t i = 0; struct lysp_feature *f = 0; - if (!features) { + if (!features || !features[0]) { /* keep all features disabled */ return LY_SUCCESS; }