]> git.ipfire.org Git - thirdparty/hostap.git/commit
hs20-osu-client: Hide a trivial compiler warning
authorMasashi Honma <masashi.honma@gmail.com>
Mon, 6 Feb 2017 11:07:44 +0000 (20:07 +0900)
committerJouni Malinen <j@w1.fi>
Mon, 6 Feb 2017 17:28:34 +0000 (19:28 +0200)
commit00e0f0b010d1ede25642c21f0256e27a13b15bb1
tree457ed44fc130740d84e9d61581f065d159699695
parentf366ff24f5796aa4c10392a9a3ccba7dea0c07e7
hs20-osu-client: Hide a trivial compiler warning

This patch hides a compiler 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++) {
  ^

osu_count is actually initialized in parse_osu_providers() if non-NULL
value is returned.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
hs20/client/osu_client.c