Fixed OOPS

This commit is contained in:
Jaroslav Kysela 2002-02-17 17:50:02 +00:00
parent 6c97531cf5
commit 158ceab298

View file

@ -937,7 +937,7 @@ static int cset(int argc, char *argv[], int roflag)
if (!roflag) {
ptr = argv[1];
for (idx = 0; idx < count && idx < 128 && *ptr; idx++) {
for (idx = 0; idx < count && idx < 128 && ptr && *ptr; idx++) {
switch (type) {
case SND_CTL_ELEM_TYPE_BOOLEAN:
tmp = 0;