fix(3p/nix/libstore): Fix error condition when parsing generations

This commit is contained in:
Vincent Ambo 2020-05-25 01:24:37 +01:00
parent 98299da0fd
commit 8cf1322a6f

View file

@ -31,7 +31,7 @@ static int parseName(absl::string_view profileName, absl::string_view name) {
}
int n;
if (!absl::SimpleAtoi(name, &n) && n < 0) {
if (!absl::SimpleAtoi(name, &n) || n < 0) {
return -1;
}