common-lisp.net
/
projects/clfswm/clfswm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9e6f498
)
Minor string check to prevent unknown alsa card errors
author
Philippe Brochard
<pbrochard@common-lisp.net>
Sat, 3 Nov 2012 20:22:04 +0000 (21:22 +0100)
committer
Philippe Brochard
<pbrochard@common-lisp.net>
Sat, 3 Nov 2012 20:22:04 +0000 (21:22 +0100)
contrib/amixer.lisp
patch
|
blob
|
blame
|
history
diff --git
a/contrib/amixer.lisp
b/contrib/amixer.lisp
index
8309030
..
53d4aee
100644
(file)
--- a/
contrib/amixer.lisp
+++ b/
contrib/amixer.lisp
@@
-70,7
+70,7
@@
(fmt "amixer ~A ~A~{ ~A~} 2>/dev/null | tail -1 | ~A")
(shell (format nil fmt cmd scontrol parameters sed))
(line (read-line (do-shell shell) nil t)))
- (when line
+ (when (stringp line)
(let* ((ratio (parse-integer line :junk-allowed t))
(%-pos (position #\% line)))
(values (and ratio (/ ratio 100))