X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=SimpleServer.xs;h=788b92941cdd0049315bc66fe6c8b0290bf66231;hb=2838187cf5b3eb95352f68a9709929a2b42019dc;hp=94decda46b1d8fe7c64a6256f6b7427f53f17f9a;hpb=be2a845da0612fab71d377d2ff64c87322df1565;p=simpleserver-moved-to-github.git diff --git a/SimpleServer.xs b/SimpleServer.xs index 94decda..788b929 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.77 2007-09-07 16:54:01 mike Exp $ + * $Id: SimpleServer.xs,v 1.79 2007-09-10 14:50:31 mike Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -424,9 +424,10 @@ static SV *apt2perl(Z_AttributesPlusTerm *at) setMember(hv2, "attributeValue", newSViv(*elem->value.numeric)); } else { - assert(elem->which == Z_AttributeValue_complex); - Z_ComplexAttribute *c = elem->value.complex; + Z_ComplexAttribute *c; Z_StringOrNumeric *son; + assert(elem->which == Z_AttributeValue_complex); + c = elem->value.complex; /* We ignore semantic actions and multiple values */ assert(c->num_list > 0); son = c->list[0];