j1939cat: j1939cat_send(): fix uninitialized variable

pull/388/head
Marc Kleine-Budde 2022-12-07 16:34:37 +01:00
parent 0b84a782c2
commit 7e8cfac0de
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ static int j1939cat_send(struct j1939cat_priv *priv)
{
unsigned int size = 0;
unsigned int i;
int ret;
int ret = 0;
if (priv->todo_filesize)
size = j1939cat_get_file_size(priv->infile);