git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do not clobber errno
[protos/libecoli.git]
/
lib
/
ecoli_keyval.c
diff --git
a/lib/ecoli_keyval.c
b/lib/ecoli_keyval.c
index
97c5da8
..
12fe66b
100644
(file)
--- a/
lib/ecoli_keyval.c
+++ b/
lib/ecoli_keyval.c
@@
-80,10
+80,8
@@
ec_keyval_lookup(const struct ec_keyval *keyval, const char *key)
h = ec_murmurhash3(key, strlen(key), ec_keyval_seed);
LIST_FOREACH(ref, &keyval->table[h & mask], next) {
- if (strcmp(ref->elt->key, key) == 0) {
- errno = 0;
+ if (strcmp(ref->elt->key, key) == 0)
return ref;
- }
}
errno = ENOENT;