aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index bc414d2..2d85ca7 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4005,7 +4005,7 @@ int main(int argc, char *argv[])
else {
/* copier used as tmp var */
copier = realpath(optarg, g_cppath);
- if (!copier) {
+ if (!g_cppath[0]) {
xerror();
return 1;
}