From: Steinar H. Gunderson Date: Thu, 8 Oct 2020 20:35:28 +0000 (+0200) Subject: Unbreak runs with no --limit. X-Git-Tag: 1.0.0~30 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c2a9d82ec4defdb13756a9306fe6cabca8727626;p=plocate Unbreak runs with no --limit. --- 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: