From: Florian F. <f.f...@gm...> - 2016-10-13 14:43:36
|
We want to know the size of the pointed object, not the pointer. Signed-off-by: Florian Fainelli <f.f...@gm...> --- cardsetting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardsetting.c b/cardsetting.c index aae3be1433ce..e2555bd96b63 100644 --- a/cardsetting.c +++ b/cardsetting.c @@ -589,7 +589,7 @@ int acx1xx_update_antenna(acx_device_t *adev) log(L_INIT, "Updating antenna[0,1]: 0x%02X 0x%02X\n", adev->antenna[0], adev->antenna[1]); - memset(antenna, 0, sizeof(antenna)); + memset(antenna, 0, sizeof(*antenna)); antenna[4] = adev->antenna[0]; antenna[5] = adev->antenna[1]; res = acx_configure(adev, antenna, -- 2.7.4 |