diff options
Diffstat (limited to 'src/nix-env/profiles.hh')
-rw-r--r-- | src/nix-env/profiles.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nix-env/profiles.hh b/src/nix-env/profiles.hh index 2422c9f74..2ce468dfa 100644 --- a/src/nix-env/profiles.hh +++ b/src/nix-env/profiles.hh @@ -11,6 +11,14 @@ struct Generation int number; Path path; time_t creationTime; + Generation() + { + number = -1; + } + operator bool() const + { + return number != -1; + } }; typedef list<Generation> Generations; |