]> Sergey Matveev's repositories - nnn.git/commitdiff
Add debug message for bad call
authorKlzXS <klzx+github@klzx.cf>
Wed, 25 Jan 2023 17:56:48 +0000 (18:56 +0100)
committerKlzXS <klzx+github@klzx.cf>
Wed, 25 Jan 2023 17:56:48 +0000 (18:56 +0100)
src/nnn.c

index d186e5aa227b80e386dfbcf08759176486b7737d..9818c347774b7d4cc973fb1b835dbac9d5be82d6 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4451,8 +4451,10 @@ static bool get_output(char *file, char *arg1, char *arg2, int fdout, bool page)
         * to close it, the caller must do it. We don't even know the path to pass to the pager and
         * it's a real hassle to get it. In general this just invites problems so we are blocking it.
         */
-       if (have_file && page)
+       if (have_file && page) {
+               DPRINTF_S("invalid get_ouptput() call");
                return FALSE;
+       }
 
        /* Setup file descriptors for child command */
        if (!have_file && page) {