aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-26 14:05:56 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-26 14:05:56 +0530
commite7147c1f3945690b555fd00e3740b8853e9755df (patch)
tree7b63679f865dbae01a798457bebb0cae57ed3956 /src/nnn.c
parent33fdbc2216d3e91c9e911ecf4366b09c029346ba (diff)
downloadnnn-e7147c1f3945690b555fd00e3740b8853e9755df.tar.gz
Show error at source
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nnn.c b/src/nnn.c
index dfceb76..97a18ff 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -6440,8 +6440,10 @@ static char *load_input()
DPRINTF_D(total_read);
DPRINTF_D(chunk_count);
- if (!entries)
+ if (!entries) {
+ fprintf(stderr, "0 entries\n");
goto malloc_1;
+ }
input[total_read] = '\0';
@@ -6821,10 +6823,8 @@ int main(int argc, char *argv[])
if (!isatty(STDIN_FILENO)) {
/* This is the same as listpath */
initpath = load_input();
- if (!initpath) {
- fprintf(stderr, "!initpath\n");
+ if (!initpath)
return _FAILURE;
- }
/* We return to tty */
dup2(STDOUT_FILENO, STDIN_FILENO);