summaryrefslogtreecommitdiffstats
path: root/src/libs/client/RDFQuery.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-12-12 12:45:33 +0000
committerDavid Robillard <d@drobilla.net>2006-12-12 12:45:33 +0000
commit71f632d459471c2e75ed04b808df9671539a182c (patch)
tree2fe3c25243e7b915656c02dd46bca5a0d317b599 /src/libs/client/RDFQuery.cpp
parent9e2a757e026abf79d0cdcf12a18796fa89973356 (diff)
downloadingen-71f632d459471c2e75ed04b808df9671539a182c.tar.gz
ingen-71f632d459471c2e75ed04b808df9671539a182c.tar.bz2
ingen-71f632d459471c2e75ed04b808df9671539a182c.zip
Connection loading.
Command line parameter for server to allow connecting to specific JACK server. git-svn-id: http://svn.drobilla.net/lad/ingen@217 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/RDFQuery.cpp')
-rw-r--r--src/libs/client/RDFQuery.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libs/client/RDFQuery.cpp b/src/libs/client/RDFQuery.cpp
index 02a491bb..3993de20 100644
--- a/src/libs/client/RDFQuery.cpp
+++ b/src/libs/client/RDFQuery.cpp
@@ -48,8 +48,12 @@ RDFQuery::run(const Glib::ustring filename) const
rasqal_literal* rvalue = rasqal_query_results_get_binding_value(results, i);
Glib::ustring name((const char*)rname);
- Glib::ustring value((const char*)rasqal_literal_as_string(rvalue));
- bindings.insert(std::make_pair(name, value));
+ const unsigned char* str = rasqal_literal_as_string(rvalue);
+
+ if (str) {
+ Glib::ustring value((const char*)str);
+ bindings.insert(std::make_pair(name, value));
+ }
}
result.push_back(bindings);