X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fres.c;fp=util%2Fres.c;h=d805222c753e0a40ed026ef08d5e57f7239b4cc1;hb=075ab3dda4ad564be22fb00f84aefd50f3a4f072;hp=5e4a73073d14a363e3a5cc226d5ebcdb4baed8b6;hpb=ae5c8868f2bee81cebddf3251432eb47c3da3591;p=idzebra-moved-to-github.git diff --git a/util/res.c b/util/res.c index 5e4a730..d805222 100644 --- a/util/res.c +++ b/util/res.c @@ -1,4 +1,4 @@ -/* $Id: res.c,v 1.54 2006-12-06 10:26:40 adam Exp $ +/* $Id: res.c,v 1.55 2007-01-05 16:11:25 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -344,6 +344,8 @@ void res_set(Res r, const char *name, const char *value) struct res_entry *re; assert(r); + if (!value) + return; for (re = r->first; re; re=re->next) if (re->value && !yaz_matchstr(re->name, name)) {