diff options
Diffstat (limited to 'ftpfs/ftpfs.c')
-rw-r--r-- | ftpfs/ftpfs.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ftpfs/ftpfs.c b/ftpfs/ftpfs.c index c3dd0d14..646f9b1b 100644 --- a/ftpfs/ftpfs.c +++ b/ftpfs/ftpfs.c @@ -328,15 +328,17 @@ netfs_append_args (char **argz, size_t *argz_len) mutex_lock (&debug_lock); if (ftpfs_ftp_hooks.cntl_debug && debug_stream) - if (debug_stream != stderr) - { - char *rep; - asprintf (&rep, "--debug=%s", debug_stream_name); - err = argz_add (argz, argz_len, rep); - free (rep); - } - else - err = argz_add (argz, argz_len, "--debug"); + { + if (debug_stream != stderr) + { + char *rep; + asprintf (&rep, "--debug=%s", debug_stream_name); + err = argz_add (argz, argz_len, rep); + free (rep); + } + else + err = argz_add (argz, argz_len, "--debug"); + } mutex_unlock (&debug_lock); if (ftpfs->params.name_timeout != DEFAULT_NAME_TIMEOUT) |