Fix Error: slcan.c:265:19: error: variable 'reccount' is uninitialized when used here [-Werror,-Wuninitialized]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
46fac8c851
commit
8094ced139
@ -193,7 +193,7 @@ int main(int argc, char *argv[])
|
|||||||
int nbytes;
|
int nbytes;
|
||||||
int i;
|
int i;
|
||||||
int ret;
|
int ret;
|
||||||
int reccount;
|
int reccount = 0;
|
||||||
struct sockaddr_can addr;
|
struct sockaddr_can addr;
|
||||||
struct canfd_frame frame;
|
struct canfd_frame frame;
|
||||||
struct msghdr msg;
|
struct msghdr msg;
|
||||||
|
Loading…
Reference in New Issue
Block a user