diff options
author | David Robillard <d@drobilla.net> | 2006-07-26 18:53:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-26 18:53:15 +0000 |
commit | f988795439be205e96f71563b8de37b3eb399c55 (patch) | |
tree | a765305b545a7e93c7c49c0ee4a00b278b0d4d79 /src/query.c | |
parent | a15486a0151251ddc7805604a08580fa8279efaa (diff) | |
download | lilv-f988795439be205e96f71563b8de37b3eb399c55.tar.gz lilv-f988795439be205e96f71563b8de37b3eb399c55.tar.bz2 lilv-f988795439be205e96f71563b8de37b3eb399c55.zip |
Removed vstrjoin
git-svn-id: http://svn.drobilla.net/lad/libslv2@105 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r-- | src/query.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/query.c b/src/query.c index b8d279f..0517331 100644 --- a/src/query.c +++ b/src/query.c @@ -60,18 +60,10 @@ slv2_query_lang_filter(const char* variable) rasqal_query_results* slv2_plugin_run_query(const SLV2Plugin* p, - const char* first, ...) + const char* query) { - - /* FIXME: Too much unecessary allocation */ - char* header = slv2_query_header(p); - - va_list args_list; - va_start(args_list, first); - - char* args_str = vstrjoin(first, args_list); - char* query_str = strjoin(header, args_str, NULL); - va_end(args_list); + char* header = slv2_query_header(p); + char* query_str = strjoin(header, query, NULL); assert(p); assert(query_str); @@ -86,7 +78,6 @@ slv2_plugin_run_query(const SLV2Plugin* p, rasqal_free_query(rq); free(query_str); - free(args_str); free(header); return results; |