1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

shell/sc_can: fix uninitialized warning

When compiled for `hifive1` board with `gcc-7.2.0` this warning was raised:

'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This commit is contained in:
Gaëtan Harter 2018-07-24 13:58:15 +02:00
parent d3b5a79bc1
commit eec88e3e53
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -83,7 +83,7 @@ static int _dump(int argc, char **argv)
return 0;
}
int ret;
int ret = -1;
struct can_filter filters[SC_CAN_MAX_FILTERS];
conn_can_raw_t conn;
struct can_frame frame;