projects
/
platform
/
upstream
/
alsa-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.0.28
[platform/upstream/alsa-utils.git]
/
alsamixer
/
cli.c
diff --git
a/alsamixer/cli.c
b/alsamixer/cli.c
index
bb4f030
..
3f8f52f
100644
(file)
--- a/
alsamixer/cli.c
+++ b/
alsamixer/cli.c
@@
-115,6
+115,9
@@
fail:
int main(int argc, char *argv[])
{
+ if (!isatty(fileno(stdin)))
+ return 0;
+
setlocale(LC_ALL, "");
#ifdef ENABLE_NLS_IN_CURSES
textdomain(PACKAGE);