aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-02 19:34:41 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-02 22:24:06 +0530
commit5cd97941024e1ffa73a909d6352948a4ec6bfdf0 (patch)
treed7104ca0486a6dee1494d1d95c04ed8e21c94561 /src
parent6001eeb9a47f963a07b0bd6559aa2b146588619c (diff)
downloadnnn-5cd97941024e1ffa73a909d6352948a4ec6bfdf0.tar.gz
Remove redundant assignment
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 54ff48f..03ccdc8 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5767,9 +5767,8 @@ int main(int argc, char *argv[])
}
#endif
- /* Set nnn nesting level, idletimeout used as tmp var */
- idletimeout = xatoi(getenv(env_cfg[NNNLVL]));
- setenv(env_cfg[NNNLVL], xitoa(++idletimeout), 1);
+ /* Set nnn nesting level */
+ setenv(env_cfg[NNNLVL], xitoa(xatoi(getenv(env_cfg[NNNLVL])) + 1), 1);
/* Get locker wait time, if set */
idletimeout = xatoi(getenv(env_cfg[NNN_IDLE_TIMEOUT]));