summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/yavta.c b/yavta.c
index 86447f3..bcdcddb 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1505,9 +1505,10 @@ static int video_parse_control_array(const struct v4l2_query_ext_ctrl *query,
val = endptr;
for ( ; isspace(*val); ++val) { };
- if (*val++ != ',')
+ if (*val != ',')
break;
- }
+ val++;
+ }
if (i < query->elems - 1)
return -EINVAL;