summaryrefslogtreecommitdiff
path: root/src/geometry/geometry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry/geometry.c')
-rw-r--r--src/geometry/geometry.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/geometry/geometry.c b/src/geometry/geometry.c
index 5e93c55..322ada0 100644
--- a/src/geometry/geometry.c
+++ b/src/geometry/geometry.c
@@ -13,5 +13,11 @@ int kai_read_float_array(struct ka_float_array_t *dest, struct kai_tag_t *src)
return -1;
}
+ char *count_str = kai_tag_get_attr(src, "count");
+ if (count_str == NULL) {
+ /* missing required count attribute! */
+ return -1;
+ }
+
return 0;
}