summaryrefslogtreecommitdiffstats
path: root/src/sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sample.c')
-rw-r--r--src/sample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sample.c b/src/sample.c
index 74a54937..2e46eac7 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -10,7 +10,7 @@ struct sample_spec default_sample_spec = {
};
struct memblock *silence(struct memblock* b, struct sample_spec *spec) {
- char c;
+ char c = 0;
assert(b && spec);
memblock_assert_exclusive(b);
@@ -53,7 +53,7 @@ void add_clip(struct memchunk *target, struct memchunk *chunk, struct sample_spe
size_t sample_size(struct sample_spec *spec) {
assert(spec);
- size_t b;
+ size_t b = 1;
switch (spec->format) {
case SAMPLE_U8: