diff options
author | David Robillard <d@drobilla.net> | 2007-10-04 01:42:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-04 01:42:35 +0000 |
commit | c1b50ad1aabd55702c0b20392dc9ad40813ca976 (patch) | |
tree | cede4b63ea519177507a647e1e0aa223d247e7f5 /src/pluginui.c | |
parent | 33dd73d3d9fcd86f285062d825df57e0612d85a9 (diff) | |
download | lilv-c1b50ad1aabd55702c0b20392dc9ad40813ca976.tar.gz lilv-c1b50ad1aabd55702c0b20392dc9ad40813ca976.tar.bz2 lilv-c1b50ad1aabd55702c0b20392dc9ad40813ca976.zip |
Fix librdf warnings.
git-svn-id: http://svn.drobilla.net/lad/slv2@821 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/pluginui.c')
-rw-r--r-- | src/pluginui.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/pluginui.c b/src/pluginui.c index 9237382..1e358e9 100644 --- a/src/pluginui.c +++ b/src/pluginui.c @@ -28,14 +28,20 @@ /* private */ SLV2UI slv2_ui_new(SLV2World world, - librdf_uri* uri, - librdf_uri* type_uri, - librdf_uri* binary_uri) + librdf_uri* uri, + librdf_uri* type_uri, + librdf_uri* binary_uri) { + assert(uri); + assert(type_uri); + assert(binary_uri); + struct _SLV2UI* ui = malloc(sizeof(struct _SLV2UI)); ui->uri = librdf_new_uri_from_uri(uri); ui->binary_uri = librdf_new_uri_from_uri(binary_uri); + assert(ui->binary_uri); + // FIXME: kludge char* bundle = strdup((const char*)librdf_uri_as_string(ui->binary_uri)); char* last_slash = strrchr(bundle, '/') + 1; |