summaryrefslogtreecommitdiffstats
path: root/commands/keystore.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/keystore.c')
-rw-r--r--commands/keystore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/keystore.c b/commands/keystore.c
index 52c4be2639..40bcb7105d 100644
--- a/commands/keystore.c
+++ b/commands/keystore.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
#include <common.h>
#include <command.h>
#include <getopt.h>
@@ -15,7 +17,7 @@ static int do_keystore(int argc, char *argv[])
const char *file = NULL;
char *secret_str = NULL;
void *secret;
- int s_len;
+ size_t s_len = 0;
while ((opt = getopt(argc, argv, "rs:f:")) > 0) {
switch (opt) {