mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:35:42 +01:00
alsactl: save state - do not call rename for stdio
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
6f9835f200
commit
03a652e18d
1 changed files with 1 additions and 1 deletions
|
@ -1626,7 +1626,7 @@ int save_state(const char *file, const char *cardname)
|
|||
snd_output_close(out);
|
||||
if (err < 0) {
|
||||
error("snd_config_save: %s", snd_strerror(err));
|
||||
} else {
|
||||
} else if (nfile) {
|
||||
err = rename(nfile, file);
|
||||
if (err < 0)
|
||||
error("rename failed: %s (%s)", strerror(-err), file);
|
||||
|
|
Loading…
Reference in a new issue