diff options
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r-- | src/libexpr/nixexpr.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index 725e30c6fa6d..166289b29851 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -121,10 +121,10 @@ struct ExprVar : Expr struct ExprSelect : Expr { - Expr * e; + Expr * e, * def; AttrPath attrPath; - ExprSelect(Expr * e, const AttrPath & attrPath) : e(e), attrPath(attrPath) { }; - ExprSelect(Expr * e, const Symbol & name) : e(e) { attrPath.push_back(name); }; + ExprSelect(Expr * e, const AttrPath & attrPath, Expr * def) : e(e), def(def), attrPath(attrPath) { }; + ExprSelect(Expr * e, const Symbol & name) : e(e), def(0) { attrPath.push_back(name); }; COMMON_METHODS }; |