]> err.no Git - systemd/commitdiff
systemctl: drop redundant getenv('LESS') check
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Jan 2011 00:18:57 +0000 (01:18 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 4 Jan 2011 00:18:57 +0000 (01:18 +0100)
src/systemctl.c

index 0908b6ae02e69304493135f93d6210c18d43804c..5d2efbe95f8709026b7c1ff6044fdafc3af898e4 100644 (file)
@@ -5328,8 +5328,7 @@ static void pager_open(void) {
                 dup2(fd[0], STDIN_FILENO);
                 close_pipe(fd);
 
-                if (!getenv("LESS"))
-                        setenv("LESS", "FRSX", 0);
+                setenv("LESS", "FRSX", 0);
 
                 prctl(PR_SET_PDEATHSIG, SIGTERM);