From b6ab81bc42a38746f704c91936462ec306dc8764 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 12 Dec 2008 18:00:39 +0000 Subject: Fix assertion death on ingen -egl git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1851 a436a847-0d15-0410-975c-d299462d15a1 --- src/ingen/main.cpp | 5 +++-- 1 file 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 data_path; boost::optional parent; boost::optional 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; } -- cgit v1.2.1