tree CHANGE test for NULL in LY_ARRAY_COUNT() macro
Make it more safe in cost of losing possibility to use macro as lvalue.
diff --git a/src/tree_schema_helpers.c b/src/tree_schema_helpers.c
index 5fa24ba..2d645cb 100644
--- a/src/tree_schema_helpers.c
+++ b/src/tree_schema_helpers.c
@@ -109,7 +109,7 @@
LY_ARRAY_COUNT_TYPE i, r;
struct lysp_revision rev;
- for (i = 1, r = 0; revs && i < LY_ARRAY_COUNT(revs); i++) {
+ for (i = 1, r = 0; i < LY_ARRAY_COUNT(revs); i++) {
if (strcmp(revs[i].date, revs[r].date) > 0) {
r = i;
}