diff mbox series

[yavta,3/3] Fix control array parsing

Message ID 20190220151952.15376-4-laurent.pinchart@ideasonboard.com (mailing list archive)
State New, archived
Headers show
Series Fixes for compound control support | expand

Commit Message

Laurent Pinchart Feb. 20, 2019, 3:19 p.m. UTC
Commit 4480b561404f ("Implement compound control set support") didn't
properly parse control array values. Fix it.

Fixes: 4480b561404f ("Implement compound control set support")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 yavta.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/yavta.c b/yavta.c
index 86447f3f057d..bcdcddb1a8c5 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;