Browse Source

Remove a compiler warning on uninitialized variable

This is not really ever used, but better keep the compiler output
cleaner.
Jouni Malinen 14 years ago
parent
commit
55e632df72
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/ap/ieee802_1x.c

+ 1 - 0
src/ap/ieee802_1x.c

@@ -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;