[PATCH] hs20-osu-client: Fix a trivial warning

Jouni Malinen j at w1.fi
Mon Feb 6 13:00:33 PST 2017


On Mon, Feb 06, 2017 at 08:07:44PM +0900, Masashi Honma wrote:
> This patch fixes a trivial trailing warning.
> 
> osu_client.c: In function ‘cmd_osu_select’:
> osu_client.c:2200:2: warning: ‘osu_count’ may be used uninitialized in this function [-Wmaybe-uninitialized]
>   for (i = 0; i < osu_count; i++) {
>   ^

Thanks, applied. Though, I don't think it is actually possible to reach
this line without osu_count having been initialized..

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list