projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae5c886
)
Null value for res_set makes it do nothing
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 5 Jan 2007 16:11:25 +0000
(16:11 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 5 Jan 2007 16:11:25 +0000
(16:11 +0000)
util/res.c
patch
|
blob
|
history
diff --git
a/util/res.c
b/util/res.c
index
5e4a730
..
d805222
100644
(file)
--- 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))
{