src/nnn.c | 8 ++++---- diff --git a/src/nnn.c b/src/nnn.c index dfceb764918b4372bbb1fea1d7d4b4bf36e0643d..97a18ff49402e874ffa8d6be66286e64d6f2d193 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6440,8 +6440,10 @@ DPRINTF_D(entries); 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 @@ /* Check if we are in path list mode */ 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);