cubicdaiya / dtl

diff template library written by C++
Other
283 stars 51 forks source link

Fix uninitialized scalar errors reported by Coverity: #16

Open bobk2824 opened 2 years ago

bobk2824 commented 2 years ago

A Coverity scan on my project, when including DTL, reported these errors:

uninit_use_in_call: Using uninitialized value cordinate. Field cordinate.k is uninitialized when calling push_back.

uninit_member: Non-static class member ox is not initialized in this constructor nor in any functions that it calls.

uninit_member: Non-static class member oy is not initialized in this constructor nor in any functions that it calls.

This PR fixes these issues. Thanks!