Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalex committed Jul 12, 2011
1 parent 1c225df commit 345e21f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion io.c
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions tcplay.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tcplay_api.c
Expand Up @@ -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;

Expand Down

0 comments on commit 345e21f

Please sign in to comment.