]> git.alsa-project.org Git - alsa-utils.git/commit
Don't call close() for the same fd twice in arecord
authorTakashi Iwai <tiwai@suse.de>
Thu, 3 Aug 2006 15:33:32 +0000 (17:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Aug 2006 15:33:32 +0000 (17:33 +0200)
commite45f2f4bf5b2df04cb800bbd40db489fbf37ccb3
tree52d9b99a9f79150fad2f9e4d4b70a9ce16cb50f1
parent3de280c6f4cca9ce7e311cff008a49d9612f40ef
Don't call close() for the same fd twice in arecord

Since fmt_rec_table[].end() closes the file descriptor, we should
reset fd to -1 for avoiding closing the same fd once again.
aplay/aplay.c