]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - keydb_db3.c
cscvs to tla changeset 81
[onak.git] / keydb_db3.c
index 0f4239bd212b37cb8621ce46ed799d807a9d166e..1aba9199dea0442b6de2c39ebe4c5bb10cd9edfe 100644 (file)
@@ -4,6 +4,8 @@
  * Jonathan McDowell <noodles@earth.li>
  *
  * Copyright 2002 Project Purple
  * Jonathan McDowell <noodles@earth.li>
  *
  * Copyright 2002 Project Purple
+ *
+ * $Id: keydb_db3.c,v 1.16 2003/06/04 20:57:08 noodles Exp $
  */
 
 #include <assert.h>
  */
 
 #include <assert.h>
@@ -759,7 +761,10 @@ int dumpdb(char *filenamebase)
                memset(&data, 0, sizeof(data));
                ret = cursor->c_get(cursor, &key, &data, DB_NEXT);
        }
                memset(&data, 0, sizeof(data));
                ret = cursor->c_get(cursor, &key, &data, DB_NEXT);
        }
-       logthing(LOGTHING_ERROR, "Problem reading key: %s", db_strerror(ret));
+       if (ret != DB_NOTFOUND) {
+               logthing(LOGTHING_ERROR, "Problem reading key: %s",
+                               db_strerror(ret));
+       }
 
        close(fd);
 
 
        close(fd);