Skip to content

Commit

Permalink
Initialize r in common.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed May 20, 2021
1 parent c53cd75 commit b45015e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/matplot/util/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace matplot {

template <size_t N, class T>
inline std::array<T, N> to_array(std::initializer_list<T> il) {
std::array<T, N> r;
std::array<T, N> r{};
auto r_it = r.begin();
auto il_it = il.begin();
while (r_it != r.end() && il_it != il.end()) {
Expand Down

0 comments on commit b45015e

Please sign in to comment.