projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed usage of uninitialized memory, thax to valgrind
[lcr.git]
/
port.cpp
diff --git
a/port.cpp
b/port.cpp
index
32184a8
..
b6c82d9
100644
(file)
--- a/
port.cpp
+++ b/
port.cpp
@@
-768,6
+768,7
@@
int Port::open_record(int type, int vbox, int skip, char *extension, int anon_ig
case CODEC_MONO:
case CODEC_STEREO:
case CODEC_8BIT:
+ memset(&dummyheader, 0, sizeof(dummyheader));
ret = fwrite(dummyheader, sizeof(dummyheader), 1, p_record);
break;