about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index f545d52eecab..cb5967182aa8 100644
--- a/src/libstore/store.cc
+++ b/src/libstore/store.cc
@@ -416,7 +416,7 @@ Path addToStore(const Path & _srcPath)
     Path srcPath(absPath(_srcPath));
     debug(format("adding `%1%' to the store") % srcPath);
 
-    Hash h;
+    Hash h(htMD5);
     {
         SwitchToOriginalUser sw;
         h = hashPath(srcPath);