summaryrefslogtreecommitdiffstats
path: root/src/pluginui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pluginui.c')
-rw-r--r--src/pluginui.c12
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;