Skip to content
Browse files

minor fixes

  • Loading branch information...
1 parent 1c225df commit 345e21f7afaf58e49c3bf0ac5073b38757b41519 @bwalex committed
Showing with 5 additions and 5 deletions.
  1. +1 −1 io.c
  2. +3 −3 tcplay.c
  3. +1 −1 tcplay_api.c
View
2 io.c
@@ -44,7 +44,7 @@ void *
read_to_safe_mem(const char *file, off_t offset, size_t *sz)
{
void *mem = NULL;
- ssize_t r;
+ ssize_t r = 0;
int fd;
if ((fd = open(file, O_RDONLY)) < 0) {
View
6 tcplay.c
@@ -358,8 +358,8 @@ create_volume(const char *dev, int hidden, const char *keyfiles[], int nkeyfiles
char *pass, *pass_again;
char *h_pass = NULL;
char buf[1024];
- size_t blocks, blksz, hidden_blocks;
- struct tchdr_enc *ehdr, *hehdr;
+ size_t blocks, blksz, hidden_blocks = 0;
+ struct tchdr_enc *ehdr, *hehdr = NULL;
int64_t tmp;
int error, r;
@@ -593,7 +593,7 @@ info_map_common(const char *dev, int sflag, const char *sys_dev,
struct tcplay_info *info, *hinfo = NULL;
char *pass;
char *h_pass;
- int error, error2;
+ int error, error2 = 0;
size_t sz;
info = NULL;
View
2 tcplay_api.c
@@ -74,7 +74,7 @@ tc_api_get_summary(void)
int
tc_api_create_volume(tc_api_opts *api_opts)
{
- int nkeyfiles, n_hkeyfiles;
+ int nkeyfiles, n_hkeyfiles = 0;
int create_hidden;
int err;

0 comments on commit 345e21f

Please sign in to comment.
Something went wrong with that request. Please try again.