projects
/
platform
/
core
/
api
/
audio-io.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix improper implementation of CPulseAudioClient::getReadableSize()
[platform/core/api/audio-io.git]
/
test
/
audio_io_test.c
diff --git
a/test/audio_io_test.c
b/test/audio_io_test.c
index
be3946c
..
f3f5304
100644
(file)
--- a/
test/audio_io_test.c
+++ b/
test/audio_io_test.c
@@
-122,6
+122,10
@@
static void _audio_out_stream_cb(audio_out_h handle, size_t nbytes, void *user_d
}
buf = (char *)malloc(nbytes);
+ if (!buf) {
+ printf("malloc(%zu) failed\n", nbytes);
+ return;
+ }
read_bytes = fread(buf, 1, nbytes, fp);