From 114672a6e8b463a7ed9a2a13c9119494e5f55b87 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Fri, 28 Jun 2019 20:26:19 +1000 Subject: [PATCH] Fix uninitialised variable. --- src/load-service.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/load-service.cc b/src/load-service.cc index 25e2b4a..0134acd 100644 --- a/src/load-service.cc +++ b/src/load-service.cc @@ -233,6 +233,7 @@ static void parse_rlimit(const std::string &line, const std::string &service_nam rlimit.soft_set = true; if (cline[0] == '-') { rlimit.limits.rlim_cur = RLIM_INFINITY; + index = cline + 1; } else { unsigned long long limit = std::strtoull(cline, &index, 0); -- 2.25.1