Merge pull request #77 from Shmink/master

valgrind no longer reports uninitialised byte(s) from bind call.
pull/78/head
Oliver Hartkopp 2018-03-24 20:56:57 +01:00 committed by GitHub
commit 8389744f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ int main(int argc, char **argv)
return 1;
}
bzero(&addr,sizeof(struct sockaddr_can));
addr.can_family = AF_CAN;
addr.can_ifindex = ifr.ifr_ifindex;