From c2a9d82ec4defdb13756a9306fe6cabca8727626 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 8 Oct 2020 22:35:28 +0200 Subject: [PATCH] Unbreak runs with no --limit. --- plocate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plocate.cpp b/plocate.cpp index 26d1604..7fdf8e7 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -30,7 +30,7 @@ using namespace std::chrono; const char *dbpath = "/var/lib/mlocate/plocate.db"; bool only_count = false; bool print_nul = false; -int64_t limit_matches = -1; +int64_t limit_matches = numeric_limits::max(); class Serializer { public: -- 2.39.2