X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=retrieval%2Fd1_grs.c;h=1077c521c810f268d93ed3f1b9bf7ca4d5e30f1c;hb=61332f860c40c483d1283532e5fb225daee75e67;hp=7c863b07680793c90b6375fd52c9816c3264c777;hpb=a309d6ece06c0ab732d98c59f2718efaebd01ec6;p=yaz-moved-to-github.git diff --git a/retrieval/d1_grs.c b/retrieval/d1_grs.c index 7c863b0..1077c52 100644 --- a/retrieval/d1_grs.c +++ b/retrieval/d1_grs.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_grs.c,v $ - * Revision 1.3 1995-11-13 09:27:35 quinn + * Revision 1.4 1996-05-01 12:45:30 quinn + * Support use of local tag names in abs file. + * + * Revision 1.3 1995/11/13 09:27:35 quinn * Fiddling with the variant stuff. * * Revision 1.2 1995/11/01 13:54:46 quinn @@ -202,7 +205,7 @@ static Z_TaggedElement *nodetotaggedelement(data1_node *n, int select, ODR o) } res->tagType = odr_malloc(o, sizeof(int)); - *res->tagType = tag ? tag->tagset->type : 3; + *res->tagType = (tag && tag->tagset) ? tag->tagset->type : 3; res->tagValue = odr_malloc(o, sizeof(Z_StringOrNumeric)); if (tag && tag->which == DATA1T_numeric) {