diff options
author | David Robillard <d@drobilla.net> | 2007-02-05 06:20:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-05 06:20:36 +0000 |
commit | adafa2493e84f0b8ad46760967f82cc2efdcc2c9 (patch) | |
tree | 7006e145bd3b8ebcf3fe5c4272ccf88ed2dcb2f2 /src/RDFQuery.cpp | |
parent | 2ddb45bc8acaf5e00e5606238efd0f40595d6b96 (diff) | |
download | raul-adafa2493e84f0b8ad46760967f82cc2efdcc2c9.tar.gz raul-adafa2493e84f0b8ad46760967f82cc2efdcc2c9.tar.bz2 raul-adafa2493e84f0b8ad46760967f82cc2efdcc2c9.zip |
RDF querying bug fix (crash on empty results).
Added process callback static wrapper stuff to Jack driver.
git-svn-id: http://svn.drobilla.net/lad/raul@277 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/RDFQuery.cpp')
-rw-r--r-- | src/RDFQuery.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/RDFQuery.cpp b/src/RDFQuery.cpp index 471723f..a489a21 100644 --- a/src/RDFQuery.cpp +++ b/src/RDFQuery.cpp @@ -37,7 +37,9 @@ RDFQuery::run(const Glib::ustring base_uri_str) const rasqal_query_prepare(rq, (unsigned char*)_query.c_str(), base_uri); rasqal_query_results* results = rasqal_query_execute(rq); - assert(results); + + if (!results) + return result; /* Return an empty Results */ while (!rasqal_query_results_finished(results)) { |