]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove a compiler warning on uninitialized variable
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 21 Jun 2011 17:54:17 +0000 (20:54 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 21 Jun 2011 17:54:17 +0000 (20:54 +0300)
This is not really ever used, but better keep the compiler output
cleaner.

src/ap/ieee802_1x.c

index 217f9f9cc8e551e1bf9fed62b93a6baa50b92411..6b6fd4bdf24595641fd301e5bf3e1a5cb40e159c 100644 (file)
@@ -1852,6 +1852,7 @@ u8 * ieee802_1x_get_radius_class(struct eapol_state_machine *sm, size_t *len,
 
 const u8 * ieee802_1x_get_key(struct eapol_state_machine *sm, size_t *len)
 {
+       *len = 0;
        if (sm == NULL)
                return NULL;