initialize mmcpos, found by guenther
authorratchov <ratchov@openbsd.org>
Sun, 10 Aug 2014 10:25:04 +0000 (10:25 +0000)
committerratchov <ratchov@openbsd.org>
Sun, 10 Aug 2014 10:25:04 +0000 (10:25 +0000)
usr.bin/aucat/wav.c

index b89ba17..36c36d2 100644 (file)
@@ -913,7 +913,7 @@ wav_new_out(struct fileops *ops, struct dev *dev,
        }
        f->mode = mode;
        f->pstate = WAV_CFG;
-       f->endpos = f->startpos = 0;
+       f->mmcpos = f->endpos = f->startpos = 0;
        f->next = wav_list;
        wav_list = f;
        if (hdr == HDR_WAV) {