baresip / re

Generic library for real-time communications with async IO support
BSD 3-Clause "New" or "Revised" License
129 stars 80 forks source link

test: init err in test_sip_auth_encode() #1146

Closed alfredh closed 2 months ago

alfredh commented 2 months ago

cppcheck warning:

test/sipauth.c:129:6: warning: Uninitialized variable: err [uninitvar]
 if (err) {
     ^
test/sipauth.c:95:23: note: Assuming condition is false
 for (size_t i = 0; i < RE_ARRAY_SIZE(testv); i++) {
                      ^
test/sipauth.c:129:6: note: Uninitialized variable: err
 if (err) {
     ^