Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: init err to 0 in sdp test (cppcheck) #959

Merged
merged 1 commit into from
Sep 17, 2023
Merged

Conversation

alfredh
Copy link
Contributor

@alfredh alfredh commented Sep 17, 2023

$ cppcheck --version
Cppcheck 2.12.0

$ cppcheck -q -f --std=c11 .

src/main/main.c:704:6: error: Uninitialized variable: n [uninitvar]
 if (n < 0)
     ^
src/main/main.c:789:11: error: Uninitialized variable: fd [uninitvar]
  index = fd;
          ^
src/sipevent/sipevent.h:51:39: error: syntax error [syntaxError]
void sipnot_refresh(struct sipnot *not, uint32_t expires);
                                      ^
test/sdp.c:367:9: warning: Uninitialized variable: err [uninitvar]
 return err;
        ^
test/sdp.c:330:13: note: Assuming condition is false
 for (i=0; i<RE_ARRAY_SIZE(msgs); i++) {
            ^
test/sdp.c:367:9: note: Uninitialized variable: err
 return err;
        ^

@sreimers sreimers merged commit a97dfde into main Sep 17, 2023
44 checks passed
@sreimers sreimers deleted the test_sdp_init_err branch September 17, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants