blob: f1d2fc300fd128115c2d8c10d3a1a76b3f6c066f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From 338007c7f5ceace1c3de82c79e0bca29b6e73ce6 Mon Sep 17 00:00:00 2001
From: Romain Perier <romain.perier@gmail.com>
Date: Thu, 15 Oct 2015 19:07:59 +0200
Subject: [PATCH] host_misc: Fix uninitialized variable 'val' in function
vb2_str_to_id
Signed-off-by: Romain Perier <romain.perier@gmail.com>
---
host/lib21/host_misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/host/lib21/host_misc.c b/host/lib21/host_misc.c
index db5e824..ee9426a 100644
--- a/host/lib21/host_misc.c
+++ b/host/lib21/host_misc.c
@@ -138,7 +138,7 @@ static const char *onebyte(const char *str, uint8_t *vptr)
int vb2_str_to_id(const char *str, struct vb2_id *id)
{
- uint8_t val;
+ uint8_t val = 0;
int i;
if (!str)
--
2.1.4
|