[plane] properly initialize options in unit test

This commit is contained in:
nick black 2021-11-17 00:06:54 -05:00
parent 0877973b10
commit 50f6cf72b2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -103,7 +103,7 @@ TEST_CASE("Plane") {
} }
SUBCASE("StandardPlaneChild") { SUBCASE("StandardPlaneChild") {
struct ncplane_options nopts; struct ncplane_options nopts{};
nopts.rows = ncplane_dim_y(n_); nopts.rows = ncplane_dim_y(n_);
nopts.cols = ncplane_dim_x(n_); nopts.cols = ncplane_dim_x(n_);
auto n = ncplane_create(n_, &nopts); auto n = ncplane_create(n_, &nopts);