]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: reset --lines= correctly if no argument
authorMike Yuan <me@yhndnzj.com>
Tue, 5 Sep 2023 04:52:28 +0000 (12:52 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 5 Sep 2023 04:52:28 +0000 (12:52 +0800)
Follow-up for 8d6791d2aa98c989101f572278e9b0a63edfec42

src/journal/journalctl.c

index f1c19af1b26229a92fdd0bab8cdbdb2e900e814f..48747929bebd36c8d89be6f600270cd1618c0cd7 100644 (file)
@@ -330,6 +330,7 @@ static int parse_lines(const char *arg, bool graceful) {
 
 default_noarg:
         arg_lines = 10;
+        arg_lines_oldest = false;
         return 0;
 }