Skip to content

Commit b2bfcdd

Browse files
committed
Initialize common.h/to_array array
1 parent e851ebf commit b2bfcdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/matplot/util/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ namespace matplot {
154154

155155
template <size_t N, class T>
156156
inline std::array<T, N> to_array(const std::vector<T> &v) {
157-
std::array<T, N> r;
157+
std::array<T, N> r{};
158158
auto r_it = r.begin();
159159
auto v_it = v.begin();
160160
while (r_it != r.end() && v_it != v.end()) {

0 commit comments

Comments
 (0)