aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-29 20:32:11 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-29 20:32:11 +0530
commit8f910fe85ab704bdb8f07d52dddee61adf789da9 (patch)
treefee16ae91407e46ed026f9d91ef00400544a9fab
parent3d9905615da3304cb02a3daa010fe5f7e7003752 (diff)
downloadnnn-8f910fe85ab704bdb8f07d52dddee61adf789da9.tar.gz
Fix build break
-rw-r--r--src/nnn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5960c87..578a2c1 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3885,7 +3885,7 @@ static bool remote_mount(char *newpath)
{
uchar flag = F_CLI;
int opt;
- char *tmp, *env, *cmd;
+ char *tmp, *env;
bool r, s;
r = getutil(utils[UTIL_RCLONE]);
@@ -3901,12 +3901,10 @@ static bool remote_mount(char *newpath)
else
opt = (!s) ? 'r' : 's';
- if (opt == 's') {
- cmd = utils[UTIL_SSHFS];
- env = xgetenv("NNN_SSHFS", cmd);
- } else if (opt == 'r') {
+ if (opt == 's')
+ env = xgetenv("NNN_SSHFS", utils[UTIL_SSHFS]);
+ else if (opt == 'r') {
flag |= F_NOWAIT | F_NOTRACE;
- cmd = utils[UTIL_RCLONE];
env = xgetenv("NNN_RCLONE", "rclone mount");
} else {
printmsg(messages[MSG_INVALID_KEY]);