Skip to content

Commit f3d83a1

Browse files
janaszewskimchehab
authored andcommitted
[media] s5p-jpeg: Avoid -Wuninitialized warning in s5p_jpeg_parse_hdr
Initialize components variable in order to avoid the possibility of using it uninitialized. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent d3460b2 commit f3d83a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/platform/s5p-jpeg/jpeg-core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ static bool s5p_jpeg_parse_hdr(struct s5p_jpeg_q_data *result,
893893
unsigned long buffer, unsigned long size,
894894
struct s5p_jpeg_ctx *ctx)
895895
{
896-
int c, components, notfound;
896+
int c, components = 0, notfound;
897897
unsigned int height, width, word, subsampling = 0;
898898
long length;
899899
struct s5p_jpeg_buffer jpeg_buffer;

0 commit comments

Comments
 (0)