From d23fa8a4dd996c3613303249d197ee74b8b10d49 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 28 Oct 2007 18:41:08 +0000 Subject: [PATCH] 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. --- data1/d1_absyn.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 1.7.10.4