From cf988eae72361de1aad8c2428eff9a7325060d52 Mon Sep 17 00:00:00 2001 From: pinkerton Date: Fri, 17 Apr 1998 22:33:56 +0000 Subject: [PATCH] For guha. Fixes crashes at startup. --- modules/rdf/src/mcff2mcf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/rdf/src/mcff2mcf.c b/modules/rdf/src/mcff2mcf.c index 4b5d22f36768..b8899a5b8a18 100644 --- a/modules/rdf/src/mcff2mcf.c +++ b/modules/rdf/src/mcff2mcf.c @@ -233,6 +233,7 @@ addSlotValue (RDFFile f, RDF_Resource u, RDF_Resource s, void* v, if (f == NULL || u == NULL || s == NULL || v == NULL) return; if (s == gCoreVocab->RDF_child) { RDF_Resource temp = (RDF_Resource)v; + if (type != RDF_RESOURCE_TYPE) return; s = gCoreVocab->RDF_parent; v = u; u = temp;