Skip to content

Commit

Permalink
fix parametars is there is no debug option
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/fuse/perl-llin@87 6e4b0b00-1209-0410-87b2-b275959b5705
  • Loading branch information
dpavlin committed May 23, 2006
1 parent 87063c7 commit a58912c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Fuse.xs
Expand Up @@ -942,13 +942,18 @@ perl_fuse_main(...)
fd = fuse_mount(mountpoint,&margs);
fuse_opt_free_args(&margs);
if(fd < 0)
croak("could not mount fuse filesystem!");
if (debug &&
(fuse_opt_add_arg(&fargs, "") == -1 ||
fuse_opt_add_arg(&fargs, "-d") == -1)) {
fuse_opt_free_args(&fargs);
croak("out of memory\n");
croak("could not mount fuse filesystem!\n");
if (debug) {
if ( fuse_opt_add_arg(&fargs, "") == -1 ||
fuse_opt_add_arg(&fargs, "-d") == -1) {
fuse_opt_free_args(&fargs);
croak("out of memory\n");
}
} else {
if (fuse_opt_add_arg(&fargs, "") == -1)
croak("out of memory\n");
}

if(threaded) {
fuse_loop_mt(fuse_new(fd,&fargs,&fops,sizeof(fops)/sizeof(void*)));
} else
Expand Down

0 comments on commit a58912c

Please sign in to comment.