aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/manifest/driver.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx
index bf97c42..56c886d 100644
--- a/tests/manifest/driver.cxx
+++ b/tests/manifest/driver.cxx
@@ -143,7 +143,10 @@ main (int argc, char* argv[])
{
assert (argc == 4);
- optional<string> t (*argv[2] != '\0' ? argv[2] : optional<string> ());
+ optional<string> t (*argv[2] != '\0'
+ ? string (argv[2])
+ : optional<string> ());
+
package_name n (argv[3]);
cout << package_manifest::effective_type (t, n) << endl;