[PATCH] hs20-osu-client: Fix a trivial warning
Masashi Honma
masashi.honma at gmail.com
Mon Feb 6 03:07:44 PST 2017
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++) {
^
Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
hs20/client/osu_client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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");
--
2.7.4
More information about the Hostap
mailing list