summaryrefslogtreecommitdiff
path: root/host/lib/host_key2.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/host_key2.c')
-rw-r--r--host/lib/host_key2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/host_key2.c b/host/lib/host_key2.c
index ff6c1c35..0f4168ed 100644
--- a/host/lib/host_key2.c
+++ b/host/lib/host_key2.c
@@ -202,8 +202,8 @@ int vb2_copy_packed_key(struct vb2_packed_key *dest,
struct vb2_packed_key *vb2_read_packed_key(const char *filename)
{
- struct vb2_packed_key *key;
- uint32_t file_size;
+ struct vb2_packed_key *key = NULL;
+ uint32_t file_size = 0;
if (VB2_SUCCESS !=
vb2_read_file(filename, (uint8_t **)&key, &file_size)) {