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:
Xiang Xiao 2022-11-13 09:55:11 +08:00 committed by Petro Karashchenko
parent 46fac8c851
commit 8094ced139

View File

@ -193,7 +193,7 @@ int main(int argc, char *argv[])
int nbytes;
int i;
int ret;
int reccount;
int reccount = 0;
struct sockaddr_can addr;
struct canfd_frame frame;
struct msghdr msg;