aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2017-02-06 11:07:44 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-06 17:28:34 (GMT)
commit00e0f0b010d1ede25642c21f0256e27a13b15bb1 (patch)
tree457ed44fc130740d84e9d61581f065d159699695 /hs20
parentf366ff24f5796aa4c10392a9a3ccba7dea0c07e7 (diff)
downloadhostap-00e0f0b010d1ede25642c21f0256e27a13b15bb1.zip
hostap-00e0f0b010d1ede25642c21f0256e27a13b15bb1.tar.gz
hostap-00e0f0b010d1ede25642c21f0256e27a13b15bb1.tar.bz2
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>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/client/osu_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hs20/client/osu_client.c b/hs20/client/osu_client.c
index c05c57d..d73feb1 100644
--- a/hs20/client/osu_client.c
+++ b/hs20/client/osu_client.c
@@ -2134,7 +2134,7 @@ static int cmd_osu_select(struct hs20_osu_client *ctx, const char *dir,
char fname[255];
FILE *f;
struct osu_data *osu = NULL, *last = NULL;
- size_t osu_count, i, j;
+ size_t osu_count = 0, i, j;
int ret;
write_summary(ctx, "OSU provider selection");