Hi,
On Tue, 2013-11-12 at 10:06 +0000, Michael Ikey Doherty wrote:
> diff --git a/plugins/wifi.c b/plugins/wifi.c
> index bac1fc6..f676218 100644
> --- a/plugins/wifi.c
> +++ b/plugins/wifi.c
> @@ -181,6 +181,7 @@ static int wifi_probe(struct connman_device *device)
> wifi->tethering = false;
> wifi->bridged = false;
> wifi->bridge = NULL;
> + wifi->scan_params = NULL;
> wifi->state = G_SUPPLICANT_STATE_INACTIVE;
Just above these lines the whole wifi_data struct is allocated and
initialized to zero so you could instead remove all the lines setting
something to false or NULL. The value of G_SUPPLICANT_STATE_INACTIVE is
not zero so that one needs to be kept.
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman