summaryrefslogtreecommitdiffstats
path: root/src/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-12 18:00:39 +0000
committerDavid Robillard <d@drobilla.net>2008-12-12 18:00:39 +0000
commitb6ab81bc42a38746f704c91936462ec306dc8764 (patch)
tree9cbbc6de1731b1ac6327ffcedfba3906c45016e0 /src/ingen
parent13f41fc0e6c947a90721128320a2b9239beefa2f (diff)
downloadingen-b6ab81bc42a38746f704c91936462ec306dc8764.tar.gz
ingen-b6ab81bc42a38746f704c91936462ec306dc8764.tar.bz2
ingen-b6ab81bc42a38746f704c91936462ec306dc8764.zip
Fix assertion death on ingen -egl
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1851 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-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;
}