Skip to content

Commit

Permalink
Fix a segfault in ‘nix-env -qa’
Browse files Browse the repository at this point in the history
This was triggered by 47e1858, which
turned globals.state into a pointer.
  • Loading branch information
edolstra committed Aug 20, 2014
1 parent 65243ee commit fefd365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/eval.hh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private:

/* A cache from path names to values. */
#if HAVE_BOEHMGC
typedef std::map<Path, Value, std::less<Path>, gc_allocator<std::pair<const Path, Value> > > FileEvalCache;
typedef std::map<Path, Value, std::less<Path>, traceable_allocator<std::pair<const Path, Value> > > FileEvalCache;
#else
typedef std::map<Path, Value> FileEvalCache;
#endif
Expand Down

0 comments on commit fefd365

Please sign in to comment.