summarylogtreecommitdiffstats
path: root/fix_compile_error.patch
blob: 83fe3349ca499f31b040ccfbcb43516f13dff806 (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
diff --git a/futility/futility.c b/futility/futility.c
index 60cc9c5..6cea681 100644
--- a/futility/futility.c
+++ b/futility/futility.c
@@ -230,7 +230,7 @@ static int run_command(const struct futil_cmd_t *cmd, int argc, char *argv[])
 static int do_help(int argc, char *argv[])
 {
 	const struct futil_cmd_t *cmd;
-	const char *vstr;
+	const char *vstr = "";
 
 	/* Help about a known command? */
 	if (argc > 1) {
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)