aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-12-19 14:06:07 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-12-24 14:39:30 +0100
commitaba6eb348e0ed8177da1e7f1df46ba00d20eab96 (patch)
tree50bb1337cafac6b3a1389d43fd033d97a13c09f9 /src/libstore/store-api.cc
parent26c7602c390f8c511f326785b570918b2f468892 (diff)
libstore: Make sure that initNix has been called
Prevent bugs like https://github.com/cachix/cachix/pull/477
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 80b60ca1b..426230ca5 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -458,6 +458,7 @@ Store::Store(const Params & params)
: StoreConfig(params)
, state({(size_t) pathInfoCacheSize})
{
+ assertLibStoreInitialized();
}