-/* $Id: retrieve.c,v 1.52 2006-11-16 11:10:46 adam Exp $
+/* $Id: retrieve.c,v 1.53 2006-11-16 21:58:54 marc Exp $
Copyright (C) 1995-2006
Index Data ApS
WRBUF wrbuf = 0;
zebra_rec_keys_t keys;
+ /* set output variables before processing possible error states */
+ *rec_lenp = 0;
+
/* only accept XML and SUTRS requests */
if (input_format != VAL_TEXT_XML
&& input_format != VAL_SUTRS){
if (input_format == VAL_TEXT_XML)
wrbuf_printf(wrbuf, "</record>\n");
}
-
*rec_lenp = wrbuf_len(wrbuf);
*rec_bufp = odr_malloc(odr, *rec_lenp);
memcpy(*rec_bufp, wrbuf_buf(wrbuf), *rec_lenp);
char **rec_bufp, int *rec_lenp)
{
Record rec;
+
+ /* set output variables before processing possible error states */
+ *rec_lenp = 0;
/* only accept XML and SUTRS requests */
if (input_format != VAL_TEXT_XML
-/* $Id: t16.c,v 1.2 2006-11-16 20:44:28 marc Exp $
+/* $Id: t16.c,v 1.3 2006-11-16 21:58:55 marc Exp $
Copyright (C) 1995-2006
Index Data ApS