Resolves-coverity-id: 1302985
Signed-off-by: David Sterba <dsterba@suse.cz>
struct btrfs_receive r;
int receive_fd = fileno(stdin);
u64 max_errors = 1;
struct btrfs_receive r;
int receive_fd = fileno(stdin);
u64 max_errors = 1;
memset(&r, 0, sizeof(r));
r.mnt_fd = -1;
memset(&r, 0, sizeof(r));
r.mnt_fd = -1;
max_errors = arg_strtou64(optarg);
break;
case 'm':
max_errors = arg_strtou64(optarg);
break;
case 'm':
realmnt = strdup(optarg);
if (!realmnt) {
fprintf(stderr, "ERROR: couldn't allocate realmnt.\n");
realmnt = strdup(optarg);
if (!realmnt) {
fprintf(stderr, "ERROR: couldn't allocate realmnt.\n");
receive_fd = open(fromfile, O_RDONLY | O_NOATIME);
if (receive_fd < 0) {
fprintf(stderr, "ERROR: failed to open %s\n", fromfile);
receive_fd = open(fromfile, O_RDONLY | O_NOATIME);
if (receive_fd < 0) {
fprintf(stderr, "ERROR: failed to open %s\n", fromfile);
}
}
ret = do_receive(&r, tomnt, realmnt, receive_fd, max_errors);
}
}
ret = do_receive(&r, tomnt, realmnt, receive_fd, max_errors);