summaryrefslogtreecommitdiff
path: root/futility/cmd_bdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'futility/cmd_bdb.c')
-rw-r--r--futility/cmd_bdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/futility/cmd_bdb.c b/futility/cmd_bdb.c
index ffd575b7..efe041b2 100644
--- a/futility/cmd_bdb.c
+++ b/futility/cmd_bdb.c
@@ -82,7 +82,7 @@ static int do_add(const char *bdb_filename, const char *data_filename,
uint64_t offset, uint8_t partition,
uint8_t type, uint64_t load_address)
{
- uint8_t *bdb, *data, *new_bdb;
+ uint8_t *bdb, *data, *new_bdb = NULL;
uint32_t bdb_size, data_size;
struct bdb_header *bdb_header;
struct bdb_data *data_header;
@@ -173,7 +173,7 @@ static int do_create(const char *bdb_filename,
if (!bdb_filename || !bdbkey_pri_filename || !bdbkey_pub_filename
|| !datakey_pri_filename || !datakey_pub_filename) {
fprintf(stderr, "Missing filenames\n");
- goto exit;
+ return rv;
}
/* Load keys */