diff options
-rw-r--r-- | tonezone.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -319,6 +319,8 @@ int tone_zone_register_zone(int fd, struct tone_zone *z) int iopenedit = 1; struct zt_tone_def_header *h; + memset(buf, 0, sizeof(buf)); + h = ptr; ptr += sizeof(*h); space -= sizeof(*h); |