diff options
author | David Robillard <d@drobilla.net> | 2008-12-12 18:00:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-12 18:00:39 +0000 |
commit | b6ab81bc42a38746f704c91936462ec306dc8764 (patch) | |
tree | 9cbbc6de1731b1ac6327ffcedfba3906c45016e0 /src | |
parent | 13f41fc0e6c947a90721128320a2b9239beefa2f (diff) | |
download | ingen-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')
-rw-r--r-- | src/ingen/main.cpp | 5 |
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; } |