Fix a segfault in ‘nix-env -qa’

This was triggered by 47e185847e, which
turned globals.state into a pointer.
This commit is contained in:
Eelco Dolstra 2014-08-21 00:05:17 +02:00
parent 65243ee833
commit fefd3650d4

View file

@ -108,7 +108,7 @@ private:
/* A cache from path names to values. */ /* A cache from path names to values. */
#if HAVE_BOEHMGC #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 #else
typedef std::map<Path, Value> FileEvalCache; typedef std::map<Path, Value> FileEvalCache;
#endif #endif