Skip to content

Commit b45015e

Browse files
committed
Initialize r in common.h
1 parent c53cd75 commit b45015e

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
@@ -141,7 +141,7 @@ namespace matplot {
141141

142142
template <size_t N, class T>
143143
inline std::array<T, N> to_array(std::initializer_list<T> il) {
144-
std::array<T, N> r;
144+
std::array<T, N> r{};
145145
auto r_it = r.begin();
146146
auto il_it = il.begin();
147147
while (r_it != r.end() && il_it != il.end()) {

0 commit comments

Comments
 (0)