exits with status 0 after -h option

amixer exits with status 0 after -h option (ALSA BTS #858).
This commit is contained in:
Takashi Iwai 2005-01-31 13:48:50 +00:00
parent e188eaf097
commit b729f4fc30

View file

@ -1512,7 +1512,7 @@ int main(int argc, char *argv[])
} }
if (morehelp) { if (morehelp) {
help(); help();
return 1; return 0;
} }
if (argc - optind <= 0) { if (argc - optind <= 0) {
return selems(LEVEL_BASIC | level) ? 1 : 0; return selems(LEVEL_BASIC | level) ? 1 : 0;