From: Adam Dickmeiss Date: Thu, 15 Jan 2004 23:33:29 +0000 (+0000) Subject: Fix sequence of diagnostic element X-Git-Tag: YAZ.2.0.10~13 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=69074d2162afddc94e48d98d260f2dd70d6462b7;p=yaz-moved-to-github.git Fix sequence of diagnostic element --- diff --git a/src/srw.c b/src/srw.c index 038b9b6..7fb30b4 100644 --- a/src/srw.c +++ b/src/srw.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: srw.c,v 1.17 2004-01-09 19:53:42 adam Exp $ + * $Id: srw.c,v 1.18 2004-01-15 23:33:29 adam Exp $ */ #include @@ -318,13 +318,13 @@ static int yaz_srw_diagnostics(ODR o, xmlNodePtr pptr, Z_SRW_diagnostic **recs, { xmlNodePtr rptr = xmlNewChild(pptr, ns_diag, "diagnostic", 0); add_xsd_integer(rptr, "code", (*recs)[i].code); - add_xsd_string(rptr, "details", (*recs)[i].details); if ((*recs)[i].code) { const char *message = yaz_diag_srw_str(*(*recs)[i].code); if (message) add_xsd_string(rptr, "message", message); } + add_xsd_string(rptr, "details", (*recs)[i].details); } } return 0;