diff options
author | Dave Beckett <dave@dajobe.org> | 2010-01-19 20:55:52 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2010-01-19 20:55:52 -0800 |
commit | 92c64c1b315c4236b4ebf0038b437eb0f6ad9f14 (patch) | |
tree | 0310282dd3c237edd48c9f0eae2f889ca5307e05 /src/raptor_concepts.c | |
parent | f0b4b84e0cc6b11bb85bf8f408220edebb7ec42e (diff) | |
download | raptor-92c64c1b315c4236b4ebf0038b437eb0f6ad9f14.tar.gz |
(raptor_concepts_init): Return 1 if URI alloc failed not succeeded
Diffstat (limited to 'src/raptor_concepts.c')
-rw-r--r-- | src/raptor_concepts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raptor_concepts.c b/src/raptor_concepts.c index bb33016f..44b34e1d 100644 --- a/src/raptor_concepts.c +++ b/src/raptor_concepts.c @@ -125,7 +125,7 @@ raptor_concepts_init(raptor_world* world) for(i = 0; i < RDF_NS_LAST + 2; i++) { unsigned char* name = (unsigned char*)raptor_rdf_ns_terms_info[i].name; world->concepts[i] = raptor_new_uri_for_rdf_concept(world, name); - if(world->concepts[i]) + if(!world->concepts[i]) return 1; } |