From: Arun Prakash Jana Date: Sun, 24 Feb 2019 03:58:17 +0000 (+0530) Subject: Fix checkpatch warning X-Git-Tag: v2.4~107 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b41189313731729db7b7dcdea56f0b91aa1ec5ed;p=nnn.git Fix checkpatch warning --- diff --git a/src/nnn.c b/src/nnn.c index a273c825..f64804be 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3427,6 +3427,7 @@ nochange: case SEL_NOTE: { static char *notepath; + notepath = notepath ? notepath : getenv(env_cfg[NNN_NOTE]); if (!notepath) { printmsg("set NNN_NOTE");