From: Adam Dickmeiss Date: Sun, 28 Oct 2007 18:41:08 +0000 (+0000) Subject: Fixed bug #1819: incorrect number of args to melm does not.. X-Git-Tag: ZEBRA.2.0.20~100 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=d23fa8a4dd996c3613303249d197ee74b8b10d49 Fixed bug #1819: incorrect number of args to melm does not.. This is a trivial fix for bug #1819: incorrect number of args to melm does not issue warning/error. --- diff --git a/data1/d1_absyn.c b/data1/d1_absyn.c index 15892ef..6f8570e 100644 --- a/data1/d1_absyn.c +++ b/data1/d1_absyn.c @@ -1,4 +1,4 @@ -/* $Id: d1_absyn.c,v 1.36 2007-05-08 12:50:03 adam Exp $ +/* $Id: d1_absyn.c,v 1.37 2007-10-28 18:41:08 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -864,9 +864,10 @@ static data1_absyn *data1_read_absyn(data1_handle dh, const char *file, data1_xpelement *xp_ele = 0; data1_xpelement *last_match = 0; - if (argc < 3) + if (argc != 3) { - yaz_log(YLOG_WARN, "%s:%d: Bad # of args to xelm", file, lineno); + yaz_log(YLOG_WARN, "%s:%d: Bad # of args to %s", + file, lineno, cmd); continue; }