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/pluginclass.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/pluginclass.c')
-rw-r--r-- | src/pluginclass.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c index c41ce79..b3da0b5 100644 --- a/src/pluginclass.c +++ b/src/pluginclass.c @@ -18,6 +18,7 @@ #define _XOPEN_SOURCE 500 +#include <assert.h> #include <stdlib.h> #include <string.h> #include <slv2/pluginclass.h> @@ -52,13 +53,17 @@ slv2_plugin_class_free(SLV2PluginClass plugin_class) const char* slv2_plugin_class_get_parent_uri(SLV2PluginClass plugin_class) { - return (const char*)librdf_uri_as_string(plugin_class->parent_uri); + if (plugin_class->parent_uri) + return (const char*)librdf_uri_as_string(plugin_class->parent_uri); + else + return NULL; } const char* slv2_plugin_class_get_uri(SLV2PluginClass plugin_class) { + assert(plugin_class->uri); return (const char*)librdf_uri_as_string(plugin_class->uri); } |