summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ingen/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp
index 1861f212..e2490bbd 100644
--- a/src/ingen/main.cpp
+++ b/src/ingen/main.cpp
@@ -241,7 +241,6 @@ main(int argc, char** argv)
/* Load a patch */
if (args.load_given && engine_interface) {
-
boost::optional<Path> data_path;
boost::optional<Path> parent;
boost::optional<Symbol> symbol;
@@ -250,7 +249,9 @@ main(int argc, char** argv)
if (Path::is_valid(path)) {
const Path p(path);
parent = p.parent();
- symbol = p.name();
+ const string s = p.name();
+ if (Symbol::is_valid(s))
+ symbol = s;
} else {
cerr << "Invalid path: '" << path << endl;
}