From 2cb7bb0d334f94db0454178721b8777c64488909 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 14 Nov 2006 08:37:16 +0000 Subject: [PATCH] For update, record ID "none" makes update omit record ID. --- client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.c b/client/client.c index 396be27..bb0f250 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.318 2006-11-08 08:55:50 adam Exp $ + * $Id: client.c,v 1.319 2006-11-14 08:37:16 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -2220,7 +2220,7 @@ static int cmd_update_common(const char *arg, int version) notToKeep->elements[0] = (Z_IU0SuppliedRecords_elem *) odr_malloc(out, sizeof(**notToKeep->elements)); notToKeep->elements[0]->which = Z_IUSuppliedRecords_elem_opaque; - if (*recid) + if (*recid && strcmp(recid, "none")) { notToKeep->elements[0]->u.opaque = (Odr_oct *) odr_malloc (out, sizeof(Odr_oct)); -- 1.7.10.4