summaryrefslogtreecommitdiff
path: root/libdb/db_store.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2002-05-01 01:05:02 +0000
committerColin Watson <cjwatson@debian.org>2002-05-01 01:05:02 +0000
commit87459df86be44e8a521f4836a7da13950ba18d27 (patch)
treed1836b54b48ae61e382b5db78536356c0b2caac8 /libdb/db_store.c
parent32f87ce5d3dc373b67eb4cbd9605dd6c1180f522 (diff)
Fix a case of replacing a multi key. Minor compile fixes.
Diffstat (limited to 'libdb/db_store.c')
-rw-r--r--libdb/db_store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdb/db_store.c b/libdb/db_store.c
index e5017ee8..cdecece2 100644
--- a/libdb/db_store.c
+++ b/libdb/db_store.c
@@ -224,7 +224,7 @@ int dbstore(struct mandata *in, const char *basename)
/* Check against identical multi keys before inserting
into db */
- if (strcmp(lastkey.dptr, newkey.dptr) == 0) {
+ if (STREQ(old.ext, in->ext)) {
int ret;
ret = replace_if_necessary(in, &old, oldkey, newcont);