initializing 'result' from transfer struct
diff --git a/src/pcm.c b/src/pcm.c
index bb907b6..b4b4be1 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -495,7 +495,7 @@
x.buf = (void*)data;
x.frames = count / (pcm->config.channels *
pcm_format_to_bits(pcm->config.format) / 8);
-
+ x.result = 0;
for (;;) {
if (!pcm->running) {
int prepare_error = pcm_prepare(pcm);
@@ -544,7 +544,7 @@
x.buf = data;
x.frames = count / (pcm->config.channels *
pcm_format_to_bits(pcm->config.format) / 8);
-
+ x.result = 0;
for (;;) {
if (!pcm->running) {
if (pcm_start(pcm) < 0) {