]> git.sesse.net Git - plocate/commitdiff
Unbreak runs with no --limit.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 8 Oct 2020 20:35:28 +0000 (22:35 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 8 Oct 2020 20:35:28 +0000 (22:35 +0200)
plocate.cpp

index 26d1604b2e0f5697297d6549c00d9b0f2dc56f75..7fdf8e7036b6cbfd3a9c916c19d0fb2b3df9924a 100644 (file)
@@ -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<int64_t>::max();
 
 class Serializer {
 public: