j1939cat: j1939cat_send(): fix uninitialized variable

This commit is contained in:
Marc Kleine-Budde
2022-12-07 16:35:44 +01:00
parent 0b84a782c2
commit 7e8cfac0de
+1 -1
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);