[PATCH 5/9] timer: fix sizeof operator mismatch in snd_timer_query_hw_open
Alex Henrie
alexhenrie24 at gmail.com
Sat Dec 26 22:35:43 CET 2020
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
src/timer/timer_query_hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/timer/timer_query_hw.c b/src/timer/timer_query_hw.c
index dad228c8..d8bac6e7 100644
--- a/src/timer/timer_query_hw.c
+++ b/src/timer/timer_query_hw.c
@@ -104,7 +104,7 @@ int snd_timer_query_hw_open(snd_timer_query_t **handle, const char *name, int mo
close(fd);
return -SND_ERROR_INCOMPATIBLE_VERSION;
}
- tmr = (snd_timer_query_t *) calloc(1, sizeof(snd_timer_t));
+ tmr = (snd_timer_query_t *) calloc(1, sizeof(snd_timer_query_t));
if (tmr == NULL) {
close(fd);
return -ENOMEM;
--
2.29.2.368.ge46b91665e.dirty
More information about the Alsa-devel
mailing list