Remove unreachable statements
[gitweb.git] / pager.c
diff --git a/pager.c b/pager.c
index 5f280ab52720772905cacbcba522ecc9c81bb529..8bac9d990381f5664333a92f68b0b8cd97d43855 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -31,6 +31,11 @@ void setup_pager(void)
 
        if (!isatty(1))
                return;
+       if (!pager) {
+               if (!pager_program)
+                       git_config(git_default_config);
+               pager = pager_program;
+       }
        if (!pager)
                pager = getenv("PAGER");
        if (!pager)