From 158ceab2981cb31cd7807aed5c6311a8d81f0f23 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 17 Feb 2002 17:50:02 +0000 Subject: [PATCH] Fixed OOPS --- amixer/amixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amixer/amixer.c b/amixer/amixer.c index 5629236..726fb71 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -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; -- 2.47.1