aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-11 14:42:37 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2017-08-11 14:42:37 +0200
commit5a67da05fded64b5f678033c16196799e134c62c (patch)
tree27660c2fa0ddc813889869198f1898f62e7cb06d /include
parent7a172d76b5eb606d06f396dc4bce9b71c0b78c03 (diff)
v4l2-ctl: qc.nr_of_dims is 0 for strings, check this
The string type doesn't use dimensions, so nr_of_dims is 0 which means that using nr_of_dims - 1 as an index in an array is a bad idea. Put that code under an 'if (qc.nr_of_dims)' to avoid a bus error. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions

Privacy Policy