提交 f58d7856 编写于 作者: M Márton Németh 提交者: Mauro Carvalho Chehab

V4L/DVB (13416): smssdio: initialize return value

The return value may be used uninitialized when the size parameter
happens to be 0.
Signed-off-by: NMárton Németh <nm127@freemail.hu>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 296372e3
......@@ -78,7 +78,7 @@ struct smssdio_device {
static int smssdio_sendrequest(void *context, void *buffer, size_t size)
{
int ret;
int ret = 0;
struct smssdio_device *smsdev;
smsdev = context;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册