]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Added missing initialization of pbrec_count variable
authorJaroslav Kysela <perex@perex.cz>
Sun, 27 Apr 2003 08:46:33 +0000 (08:46 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sun, 27 Apr 2003 08:46:33 +0000 (08:46 +0000)
aplay/aplay.c

index aa59f45c7b9b3ddfa8f6805efb7841deea62d787..b626631f4a95eb44dcfbc34e1f252e23da11eb8a 100644 (file)
@@ -1793,6 +1793,7 @@ static void playback(char *name)
        size_t dta;
        ssize_t dtawave;
 
+       pbrec_count = (size_t)-1;
        fdcount = 0;
        if (!name || !strcmp(name, "-")) {
                fd = fileno(stdin);
@@ -1843,6 +1844,7 @@ static void playback(char *name)
 
 static void capture(char *name)
 {
+       pbrec_count = (size_t)-1;
        if (!name || !strcmp(name, "-")) {
                fd = fileno(stdout);
                name = "stdout";