fix(3p/nix/libstore): Fix error condition when parsing generations
This commit is contained in:
parent
98299da0fd
commit
8cf1322a6f
1 changed files with 1 additions and 1 deletions
2
third_party/nix/src/libstore/profiles.cc
vendored
2
third_party/nix/src/libstore/profiles.cc
vendored
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue