Update nix-env.cc

missing comma
This commit is contained in:
Matt O'Gorman 2017-09-21 21:41:19 -04:00 committed by Matthew O'Gorman
parent 0312d30315
commit 12fe2249e1

View file

@ -1287,7 +1287,7 @@ static void opDeleteGenerations(Globals & globals, Strings opFlags, Strings opAr
} else if (opArgs.size() == 1 && opArgs.front().find('+') != string::npos) {
if(opArgs.front().size() < 2)
throw Error(format("invalid number of generations %1%") % opArgs.front());
string str_max = string(opArgs.front() 1, opArgs.front().size());
string str_max = string(opArgs.front(), 1, opArgs.front().size());
int max;
if (!string2Int(str_max, max) || max == 0)
throw Error(format("invalid number of generations to keep %1%") % opArgs.front());