summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2015-05-01 21:36:18 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2015-05-01 21:36:18 -0300
commit3956a58164084b6959046929707afc52fe31de5e (patch)
treec76a31bd8dced78684df2be26fe31663e8f66081
parentd2e7bdf5a31efa82e569089ede8030d502d2a060 (diff)
alsa: Fix wrong memory allocation
-rw-r--r--src/lib/backends/alsa/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/backends/alsa/alsa.c b/src/lib/backends/alsa/alsa.c
index 9c42741..8ea974d 100644
--- a/src/lib/backends/alsa/alsa.c
+++ b/src/lib/backends/alsa/alsa.c
@@ -206,7 +206,7 @@ _alsa_device_source_create(const char *name, const char* hw_name,
206{ 206{
207 Alsa_Emix_Source *source; 207 Alsa_Emix_Source *source;
208 208
209 if (!(source = calloc(1, sizeof(Alsa_Emix_Sink)))) 209 if (!(source = calloc(1, sizeof(Alsa_Emix_Source))))
210 { 210 {
211 ERR("Allocation Failed"); 211 ERR("Allocation Failed");
212 return NULL; 212 return NULL;