aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-13 17:44:21 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-13 17:44:21 (GMT)
commitf9884c096ac3560a760b0893813ae2c3692b2b16 (patch)
treee847ca23733e483491ab88d530073728d078204c /wpa_supplicant/sme.c
parent64a2f2ece1e6dbb6900e1a8f4168dbf5c2f5f351 (diff)
downloadhostap-f9884c096ac3560a760b0893813ae2c3692b2b16.zip
hostap-f9884c096ac3560a760b0893813ae2c3692b2b16.tar.gz
hostap-f9884c096ac3560a760b0893813ae2c3692b2b16.tar.bz2
Convert os_zalloc() for an array to use os_calloc()
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index a82cb95..4338728 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -802,7 +802,7 @@ static void wpa_setband_scan_freqs_list(struct wpa_supplicant *wpa_s,
return;
}
- params->freqs = os_zalloc((mode->num_channels + 1) * sizeof(int));
+ params->freqs = os_calloc(mode->num_channels + 1, sizeof(int));
if (params->freqs == NULL)
return;
for (count = 0, i = 0; i < mode->num_channels; i++) {