* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.84 2006-05-30 04:50:04 quinn Exp $
+ * $Id: seshigh.c,v 1.85 2006-05-31 16:20:41 quinn Exp $
*/
/**
* \file seshigh.c
bprr->start = start;
bprr->number = number;
bprr->format = VAL_TEXT_XML;
- bprr->comp = (Z_RecordComposition *) odr_malloc(assoc->decode,
- sizeof(*bprr->comp));
- bprr->comp->which = Z_RecordComp_simple;
- bprr->comp->u.simple = (Z_ElementSetNames *)
- odr_malloc(assoc->decode, sizeof(Z_ElementSetNames));
- bprr->comp->u.simple->which = Z_ElementSetNames_generic;
- bprr->comp->u.simple->u.generic = srw_req->recordSchema;
+ if (srw_req->recordSchema)
+ {
+ bprr->comp = (Z_RecordComposition *) odr_malloc(assoc->decode,
+ sizeof(*bprr->comp));
+ bprr->comp->which = Z_RecordComp_simple;
+ bprr->comp->u.simple = (Z_ElementSetNames *)
+ odr_malloc(assoc->decode, sizeof(Z_ElementSetNames));
+ bprr->comp->u.simple->which = Z_ElementSetNames_generic;
+ bprr->comp->u.simple->u.generic = srw_req->recordSchema;
+ }
+ else
+ {
+ bprr->comp = 0;
+ }
bprr->stream = assoc->encode;
bprr->referenceId = 0;
bprr->print = assoc->print;
assoc->init->implementation_name,
odr_prepend(assoc->encode, "GFS", resp->implementationName));
- version = odr_strdup(assoc->encode, "$Revision: 1.84 $");
+ version = odr_strdup(assoc->encode, "$Revision: 1.85 $");
if (strlen(version) > 10) /* check for unexpanded CVS strings */
version[strlen(version)-2] = '\0';
resp->implementationVersion = odr_prepend(assoc->encode,