From: Adam Dickmeiss Date: Tue, 1 Jun 2010 09:23:41 +0000 (+0200) Subject: GFS fetch: issue warning if output_format is unset X-Git-Tag: v4.0.10~14 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=6cdb773ed83a2bd43d07bcf60b2f20ec71209838;p=yaz-moved-to-github.git GFS fetch: issue warning if output_format is unset --- diff --git a/src/seshigh.c b/src/seshigh.c index 2d02542..aaf0618 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2032,7 +2032,7 @@ static int process_z_request(association *assoc, request *req, char **msg) } else { - yaz_log(YLOG_DEBUG, " result unavailble"); + yaz_log(YLOG_DEBUG, " result unavailable"); retval = -1; } return retval; @@ -2560,7 +2560,10 @@ static Z_Records *pack_records(association *a, char *setname, Odr_int start, thisrec->which = Z_NamePlusRecord_databaseRecord; if (!freq.output_format) - freq.output_format = freq.request_format; + { + yaz_log(YLOG_WARN, "bend_fetch output_format not set"); + return 0; + } thisrec->u.databaseRecord = z_ext_record_oid( a->encode, freq.output_format, freq.record, freq.len); if (!thisrec->u.databaseRecord)