about summary refs log tree commit diff
path: root/src/nix-env/names.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-env/names.cc')
-rw-r--r--src/nix-env/names.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nix-env/names.cc b/src/nix-env/names.cc
index 252b07b91caa..c6054d6c1bef 100644
--- a/src/nix-env/names.cc
+++ b/src/nix-env/names.cc
@@ -1,6 +1,12 @@
 #include "names.hh"
 
 
+DrvName::DrvName()
+{
+    name = "";
+}
+
+
 /* Parse a derivation name.  The `name' part of a derivation name is
    everything up to but not including the first dash *not* followed by
    a letter.  The `version' part is the rest (excluding the separating