Closed escherstair closed 3 years ago
I report an error from cppcheck: the variable addr is not initialized here https://github.com/skypjack/uvw/blob/bf61f55dd306b31d7cb90eab8a493c3d405f2402/src/uvw/util.h#L392 and so when the condition if(0 == err) is false, addr is returned unitialized.
addr
if(0 == err)
I think it should be default initialized as in the next function https://github.com/skypjack/uvw/blob/bf61f55dd306b31d7cb90eab8a493c3d405f2402/src/uvw/util.h#L410
I report an error from cppcheck: the variable
addr
is not initialized here https://github.com/skypjack/uvw/blob/bf61f55dd306b31d7cb90eab8a493c3d405f2402/src/uvw/util.h#L392 and so when the conditionif(0 == err)
is false,addr
is returned unitialized.I think it should be default initialized as in the next function https://github.com/skypjack/uvw/blob/bf61f55dd306b31d7cb90eab8a493c3d405f2402/src/uvw/util.h#L410