Skip to content

Commit

Permalink
tests: uninitialized memory and unused result
Browse files Browse the repository at this point in the history
  • Loading branch information
dlundquist committed Dec 6, 2018
1 parent 962e1e4 commit 10ddfbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/binder_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ int main() {
static int
test_binder(int port) {
int fd;
struct sockaddr_in addr;
struct sockaddr_storage addr_verify;
struct sockaddr_in addr = { 0 };
struct sockaddr_storage addr_verify = { 0 };
socklen_t len;

/* make valgrind happy by initializing to zero */
Expand Down
1 change: 1 addition & 0 deletions tests/buffer_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ static void test_buffer_coalesce() {
assert(buffer->head != 0);

len = buffer_coalesce(buffer, NULL);
assert(len == 0);
}

int main() {
Expand Down

0 comments on commit 10ddfbf

Please sign in to comment.